-
Notifications
You must be signed in to change notification settings - Fork 27
Document required browserify option "dedupe: false" #93
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
base: master
Are you sure you want to change the base?
Conversation
cc @goto-bus-stop @ljharb thanks/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR!
I like that you've given better var names to some things :) Would it be possible to revert the index.js
whitespace changes?
return acc; | ||
}, {}); | ||
|
||
// Force browser-pack to wrap the common bundle | ||
b._bpack.hasExports = true; | ||
|
||
// for tests/debugging |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's also for plugins to hook into factored pipelines. If you have a minification step for example it can be added to the factored pipeline by using this event.
b.pipeline.get('pack').unshift(s); | ||
|
||
if (needRecords) files = []; | ||
|
||
next(); | ||
})); | ||
|
||
// capture module's relative path. used for recovering entry point pathnames |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would keep this comment but probably remove most of the others…tbh, I feel like many of the comments only restate the line and don't actually clarify much.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added the comments to stay sane while trying to read through the code which i found unintuitive
Co-Authored-By: Renée Kooi <renee@kooi.me>
also:
{ dedupe: false }
Fixes/Updates #51