You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -84,6 +84,12 @@ parser.visit(ast, {
84
84
})
85
85
```
86
86
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
+
87
93
## Contribution
88
94
89
95
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