Skip to content

Commit 013764c

Browse files
authored
Merge pull request #26 from solidity-parser/fvictorio-patch-1
Update README.md
2 parents 5fd9e4e + 596f9c0 commit 013764c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,12 @@ parser.visit(ast, {
8484
})
8585
```
8686

87+
## Usage in the browser
88+
89+
A browser-friendly version is available in `dist/solidity-parser.js` in the published version.
90+
91+
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`.
92+
8793
## Contribution
8894

8995
This project is dependant on the [@solidity-parser/antlr](https://github.com/solidity-parser/antlr) repository via a git submodule. To clone this repository and the submodule, run

0 commit comments

Comments
 (0)