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 the following case with scope hoisting enabled, using import * with the @sentry/browser package does not include all of its exports. This package re-exports quite a bit.
wbinnssmith
changed the title
import * with re-exporting does not include all exports
Scope hoisting: import * with re-exporting does not include all exports
Feb 24, 2020
mod.meta.exportsIdentifier is being inserted here, which refers to the reexporting asset which was excluded. It should instead be somehow resolved through to the actual asset.
🐛 bug report
In the following case with scope hoisting enabled, using
import *
with the@sentry/browser
package does not include all of its exports. This package re-exports quite a bit.🎛 Configuration (.babelrc, package.json, cli command)
Defaults,
parcel2 build --no-minify
🤔 Expected Behavior
All of the exports should be included when importing using
import *
😯 Current Behavior
Only subset of exports is included.
💻 Code Sample
yarn add @sentry/browser
and build with
parcel2 build --no-minify index.js
The above logs:
...but should include
@sentry/browser
's other exports, such asconfigureScope
andcaptureException
.🌍 Your Environment
The text was updated successfully, but these errors were encountered: