rpg-dice-roller v5.5.0 uses an old version of mathjs which in combination with produces the following errors when building with vite:
node_modules/mathjs/lib/esm/entry/configReadonly.js (6:20): A comment
"/* #__PURE__ */"
in "node_modules/mathjs/lib/esm/entry/configReadonly.js" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues.
node_modules/mathjs/lib/esm/type/unit/physicalConstants.js (47:0): A comment
"// export const createSpectralRadiance = /* #__PURE__ */ unitFactory('spectralRadiance', '1.1910429723971881e-16', 'W m^2 sr^-1') // TODO spectralRadiance"
in "node_modules/mathjs/lib/esm/type/unit/physicalConstants.js" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues.
node_modules/mathjs/lib/esm/utils/number.js (24:18): A comment
"/* #__PURE__ */"
in "node_modules/mathjs/lib/esm/utils/number.js" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues.
node_modules/mathjs/lib/esm/utils/number.js (39:18): A comment
"/* #__PURE__ */"
in "node_modules/mathjs/lib/esm/utils/number.js" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues.
node_modules/mathjs/lib/esm/utils/number.js (48:19): A comment
"/* #__PURE__ */"
in "node_modules/mathjs/lib/esm/utils/number.js" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues.
node_modules/mathjs/lib/esm/utils/number.js (57:19): A comment
"/* #__PURE__ */"
in "node_modules/mathjs/lib/esm/utils/number.js" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues.
node_modules/mathjs/lib/esm/utils/number.js (70:18): A comment
"/* #__PURE__ */"
in "node_modules/mathjs/lib/esm/utils/number.js" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues.
node_modules/mathjs/lib/esm/utils/number.js (94:19): A comment
"/* #__PURE__ */"
in "node_modules/mathjs/lib/esm/utils/number.js" contains an annotation that Rollup cannot interpret due to the position of the comment. The comment will be removed to avoid issues.
Description
rpg-dice-roller v5.5.0 uses an old version of mathjs which in combination with produces the following errors when building with vite:
This error should be fixed in mathjs Version v12.3.1: https://github.com/josdejong/mathjs/issues/3114#issuecomment-1921076759
Dice Roller version
v5.5.0
Bundle type
ESM
Node version
v20.12.2
Browser name and version
-