-
Notifications
You must be signed in to change notification settings - Fork 259
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
Use resolve.modules instead of explicit aliases when adding NPM packages #1077
Conversation
I added blocked label until further testing is done. |
guides/plugins/plugins/plugin-fundamentals/using-npm-dependencies.md
Outdated
Show resolved
Hide resolved
@tobiasberge short follow-up - was the mentioned test successful, or is it outstanding? |
@Isengo1989 Hey, sorry for the long delay. In 6.5.x this had side effects when to apps used the same npm package with a different version. I'll have to re-test it for 6.6 because we migrated to webpack multi compiler. With 6.6 this should be fine / more safe because every App/Plugin gets a separate build process under the hood. Feel free to close this PR in the meantime if you want to keep the PRs clean. I can re-open or create a new one. |
No worries, as discussed we leave the PR in draft till everything is figured out for v6.6 |
@tobiasberge as discussed in Slack I added the main.js info, updated some grammar and added the build commands. We will merge it in next-6.6 soon (changed the target branch). @bojanrajh rdy to merge 👋 |
import 'package-name/sub-stuff'
within the node_modules code would also need an extra alias.I propose to use
resolve.modules
instead for apps/plugins and including the entire node_modules folder: