tunnelvisionlabs / antlr4ts

Optimized TypeScript target for ANTLR 4
Other
628 stars 107 forks source link

Use webpack to build browser-targeted distribution #343

Open BurtHarris opened 6 years ago

BurtHarris commented 6 years ago

Longstanding issue #311 seems best addressed using a the Webpack build tool.

This may break imports with explicit paths! This is because Webpack packs all the code into a single (or small number) of downloadable bundles. This is a performance optimization, particularly for browser-based code. I'm still working on details, but by using output.libraryType = "umd" it generates Universal Module Definition file which can be consumed both from node.js and from browsers. This seems to cover a lot of ground.

Additional notes:

harry-kalligeros commented 5 years ago

Any progress on this?