You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not too familiar with babel's helper functions. What's your thoughts on this? Is there another method which will prevent duplication of the program?
The text was updated successfully, but these errors were encountered:
Sort of a mouthful but I'll try to explain what's happening below.
Consider this CJS module
Running this through
transform-commonjs
wraps it in a IIFE to preserve thethis
module context.If we use another ESM babel transform (such as
transform-modules-systemjs
) it causes nested duplication of codeBABEL REPL
The issue seems to be coming from this line in the
ThisExpression
branch:babel-plugin-transform-commonjs/lib/index.ts
Line 62 in 6b3ac9b
I'm not too familiar with babel's helper functions. What's your thoughts on this? Is there another method which will prevent duplication of the program?
The text was updated successfully, but these errors were encountered: