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

Apply derequire to generated bundles #2905

Merged
merged 1 commit into from
Aug 15, 2018
Merged

Apply derequire to generated bundles #2905

merged 1 commit into from
Aug 15, 2018

Conversation

m90
Copy link
Contributor

@m90 m90 commented Aug 15, 2018

Rewrite require calls in the generated bundles so that Browserify is able
to consume the bundles when bundling new bundles. Solves issue #2902.

I can successfully use the bundle this builds in Browserify as well as Webpack (CRA). That being said I am not a Webpack Pro, so if someone else could double check this it'd be much appreciated.

Rewrite require calls in the generated bundles so that Browserify is able
to consume the bundles when bundling new bundles. Solves issue #2902.
@@ -80,3 +84,14 @@ function logger(pathToOutput) {
var log = 'ok ' + path.basename(pathToOutput);
console.log(log);
}

function applyDerequire() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah nice, you turned the plugin into a transforms for speed. Love it!

@etpinard
Copy link
Contributor

etpinard commented Aug 15, 2018

Thanks very much @m90 🎉 🍻 💃

I can confirm that bundling using browserify and webpack@3 the dist bundles from npm run build works!

Merging.

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

Successfully merging this pull request may close these issues.

None yet

2 participants