Skip to content

Apply derequire to generated bundles - #2905

Merged
etpinard merged 1 commit into
plotly:masterfrom
m90:derequire
Aug 15, 2018
Merged

Apply derequire to generated bundles#2905
etpinard merged 1 commit into
plotly:masterfrom
m90:derequire

Conversation

@m90

@m90 m90 commented Aug 15, 2018

Copy link
Copy Markdown
Contributor

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.
@etpinard etpinard added bug something broken status: reviewable labels Aug 15, 2018
@etpinard etpinard added this to the v1.40.0 milestone Aug 15, 2018
console.log(log);
}

function applyDerequire() {

Copy link
Copy Markdown
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

etpinard commented Aug 15, 2018

Copy link
Copy Markdown
Contributor

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

Labels

bug something broken

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants