Closed drewkill32 closed 1 week ago
Rollup expects the
"/*#__PURE__*/"
annotations on function calls or constructor invocation, not on module function declaration.
Ok, but /*#__PURE__*/
is a webpack concept which is what this repo uses currently: https://webpack.js.org/guides/tree-shaking/#mark-a-function-call-as-side-effect-free
We're probably going to move off of webpack in 9.0 so this comment will go away then.
@BrennanConroy Thanks! I was reading up on that. It is a minor warning on the output in babel. It can be ignored until you move away from webpack
Remove Pure comment to prevent warning when building with rollup
Description
there is a warning that happens when you build a package with rollup or vite.
Rollup expects the
"/*#__PURE__*/"
annotations on function calls or constructor invocation, not on module function declaration.https://rollupjs.org/configuration-options/#pure
You can reproduce the issue with the Rollup REPL
Fixes #55286