-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bundler: Optional commonjs dependency (in try/catch) causes bundling to fail #1881
Labels
Comments
kdy1
changed the title
Optional commonjs dependency (in try/catch) causes bundling to fail
bundler: Optional commonjs dependency (in try/catch) causes bundling to fail
Mar 12, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When using
chokidar
as a dependency the optionalfsevents
module causes bundling to fail on Linux asfsevents
cannot be installed on Linux.Input code
An MVP that reproduces this is here: https://github.com/tmpfs/spack-optional-dependency-mvp
Config
N/A
Expected behavior
I expect the bundler to detect the
try/catch
context for therequire()
and allow the missing dependency.Version
The version of @swc/core: 1.2.62
Additional context
N/A
The text was updated successfully, but these errors were encountered: