Warning when importing module with rollup #443
-
Expected Behaviour Import and bundle module without warnings with rollup. Actual Behaviour Saw the above warning. Other https://rollupjs.org/troubleshooting/#error-this-is-undefined |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey there, the bundled code you're referencing comes from the TypeScript compiler. The only option we have here is to use the The warning is actually safe to ignore, but if you insist on removing it - you should use the Read more: |
Beta Was this translation helpful? Give feedback.
Hey there, the bundled code you're referencing comes from the TypeScript compiler. The only option we have here is to use the
importHelpers: true
option for TSC; however, this would introduce an additional dependency oftslib
and increase the bundle size completely unnecessarily - this is something I don't intent to do.The warning is actually safe to ignore, but if you insist on removing it - you should use the
context: "this"
option with rollup.Read more: