Lee Langley
Lee Langley
I've just found that Rollup can be told [not to bundle external dependencies](https://rollupjs.org/guide/en/#peer-dependencies), which means that I could get it to ignore the MathJS library when bundling. That means that...
Hey @danbohea. Yeah it's a lot larger than I'd like at the moment, because it's got the entire MathJs library, and random-js libraries included in the bundled files. I tried...
So the main problem here is that both MathJS and Random-js don't properly support ES modules when _not_ using a bundler, like Webpack. When those libraries are bundled with the...
I've raised a PR on mathjs that should resolve this, for the most part; https://github.com/josdejong/mathjs/pull/1941 Assuming that gets merged, it will help a lot, and enable mathJS to be used...
The needed MathJS changes are now in PR https://github.com/josdejong/mathjs/pull/1962
Testing with the MathJS#v8 branch, I can reduce the dice roller package to less than 600kb: ``` npm notice 📦 [email protected] npm notice === Tarball Contents === npm notice 192.2kB...
Math-js v8 has been released! I've merged code into the `develop` branch that removes math-js from the compiled bundles, which greatly reduces the bundle sizes. I had hoped to do...
It's been a long while, but I've just released v5.0.0, which has these changes in. The Tarball size is: ``` npm notice === Tarball Details === npm notice name: rpg-dice-roller...
Okay, this is just really strange. Even though the tarball size has decreased a lot, for some reason Packagephobia says that the package size has increased by quite a large...
Okay, I'm guessing that it's because Mathjs is around 10mb: https://packagephobia.com/result?p=mathjs [](https://packagephobia.com/result?p=mathjs) When it was included in the compiled scripts, although it was in both UMD and ESM, I...