-
-
Notifications
You must be signed in to change notification settings - Fork 522
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
Allow custom ignore for webpack plugin users #1444
Comments
This sounds like a duplicate of #1250. |
This is specifically about a module which won't work with webpack. The other issue seems to have found a workaround by not externalizing it? |
From #1447 (comment):
I don't think the approach to put everything bundled by webpack into I propose to add a config option to |
@malept What do people learn about dev/Dependencies? I think there are two main use cases for webpack. Webapps, where usually you only deploy the generated bundle, and don't care about the package. And packages where webpack is used to compile only the package sources and not dependencies, in which case you do want dependencies as non-dev dependencies. Electron packages don't seem to fit in either category. In any case, manually specifying the packages which should get copied is problematic, as you also need to manually specify all the dependencies which need to get copied. For example, Electron-Packager already seems to have logic which resolves the required dependencies tree from |
@malept I personally would not care how I have to place my dependencies in package.json, as long as this hard problem is solved. This problem is a real blocker for webpack noobs like me |
Fixed in #2424 |
Preflight Checklist
Issue Details
6.0.0-beta.47
v7.1.10
Expected Behavior
webpack plugin should respect the externals property of the webpack config
Actual Behavior
It doesn't
To Reproduce
I'm using selenium-webdriver in my app (no, not for testing...), which doesn't compile with webpack (see SeleniumHQ/selenium#7726 ). I've added it to webpack's externals, which work fine during development:
Unfortunately, when I package it, all the node_modules are removed, and the app doesn't start...
The webpack plugin should either understand the externals configuration, or it should include an option to manually whitelist particular dependencies.
Additional Information
The text was updated successfully, but these errors were encountered: