Skip to content
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

Is there a way to ignore a module? #3631

Closed
auxves opened this issue Oct 11, 2019 · 1 comment
Closed

Is there a way to ignore a module? #3631

auxves opened this issue Oct 11, 2019 · 1 comment

Comments

@auxves
Copy link

auxves commented Oct 11, 2019

❔ Question

Is there a way to ignore a module from being bundled?

πŸ”¦ Context

I am making a VSCode extension which imports the vscode module. This module is created on-the-fly by VSCode and isn't a real module, so an error is occurs when Parcel tries to bundle it.

Currently, I'm using Webpack externals to ignore it:

module.exports = {
  ...,
  "externals": {
    "vscode": "commonjs vscode"
  }
}

πŸ’» Code Sample

Repository: https://github.com/arnohovhannisyan/vscode-syncify

🌍 Your Environment

Software Version(s)
Parcel 1.12.4
Node 12.11.1
Yarn 1.19.1
Operating System Manjaro Linux
@mischnic
Copy link
Member

Duplicate of #3305 / #144

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants