<!-- Before submitting an issue to ANTLR, please check off these boxes: - [x] I am not submitting a question on how to use ANTLR; instead, go to [antlr4-discussion google group](https://groups.google.com/forum/#!forum/antlr-discussion) or ask at [stackoverflow](http://stackoverflow.com/questions/tagged/antlr4) - [x] I have done a search of the existing issues to make sure I'm not sending in a duplicate Please include information about the expected behavior, actual behavior, and the smallest grammar or code that reproduces the behavior. If appropriate, please indicate the code generation targets such as Java, C#, ... Pointers into offending code regions are also very welcome. --> I am using antlr4 with javacript target since years, Now it is throwing error when i do a build using webpack ``` Module not found: Error: Can't resolve 'fs' in '/Users/Saravanan/projects/frontend/widgets/web/node_modules/antlr4' ``` It was working fine with webpack-4 with following [settings enabled](https://stackoverflow.com/questions/54754585/how-to-use-antlr-if-an-error-with-fs-occurs). But now with wbpack-5 it is throwing the error as above.