Closed andriilahuta closed 5 years ago
Yes! Single bundle is definitely on the horizon in the next couple of months.
Thanks for letting me know.
I don't know about rollup, but this module works well with Browserify and Webpack.
I've now included a single bundle in the npm module under the directory /dist/web.
Please see "From the browser" instructions in the readme.
The repo also include webpack.node.config.js that you can use to bundle Data-Forge for use under Node.js.
Web version works with rollup, but I have to replace var dataForge
with export const dataForge
to be able to import it properly. Could you bundle esm
browser build as well?
Related issue: #33.
If you know how to bundle for esm please do that and submit a PR.
Rollup generates a lot of
Circular dependency
warnings and produces a broken bundle with undefined variables. Single-file bundle could probably resolve this issue.