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
In my case: Uncaught ReferenceError: h is not defined
馃拋 Possible Solution
Pragma function imported to source, but the function invocation only occurs in the transpiled source
(after babel-plugin-transform-react-jsx transformations), as result pragma function invocations are not visible for tree shaking and they are removed.
馃悰 bug report
Bundle missing pragma function used to transform jsx to vnodes.
馃帥 Configuration (.babelrc, package.json, cli command)
parcel build ./src/app.js --experimental-scope-hoisting --no-minify
Default babel config
馃 Expected Behavior
Pragma function is not tree shaked from source
馃槸 Current Behavior
Pragma function removed from bundle
In my case:
Uncaught ReferenceError: h is not defined
馃拋 Possible Solution
Pragma function imported to source, but the function invocation only occurs in the transpiled source
(after
babel-plugin-transform-react-jsx
transformations), as result pragma function invocations are not visible for tree shaking and they are removed.馃敠 Context
馃捇 Code Sample
馃實 Your Environment
The text was updated successfully, but these errors were encountered: