Skip to content

Commit 68c4f12

Browse files
committed
Update instructions to use it in the browser
1 parent 82237b9 commit 68c4f12

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ parser.visit(ast, {
8686

8787
## Usage in the browser
8888

89-
A browser-friendly version is available in `dist/solidity-parser.js` in the published version.
89+
A browser-friendly version is available in `dist/index.iife.js` (along with its sourcemaps file) in the published version.
9090

9191
If you are using webpack, keep in mind that minimizing your bundle will mangle function names, breaking the parser. To fix this you can just set `optimization.minimize` to `false`.
9292

@@ -98,7 +98,7 @@ This project is dependant on the [@solidity-parser/antlr](https://github.com/sol
9898
git clone --recursive
9999
```
100100

101-
If you have already cloned this repo, you can load the submodule with
101+
If you have already cloned this repo, you can load the submodule with
102102

103103
```
104104
git submodule update --init

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
"description": "A Solidity parser built from a robust ANTLR 4 grammar",
55
"main": "dist/index.cjs.js",
66
"browser": "dist/index.iife.js",
7+
"files": [
8+
"dist/**/*",
9+
"src/**/*"
10+
],
711
"types": "dist/index.d.ts",
812
"scripts": {
913
"antlr": "sh scripts/antlr.sh",

solidity-parser-parser-0.10.0.tgz

1.32 MB
Binary file not shown.

0 commit comments

Comments
 (0)