Skip to content

preserve dynamic requires in webpack #13

@pwmckenna

Description

@pwmckenna

Last night Michael Jackson asked how to preserve a dynamic require in a webpack build that targets node.

https://twitter.com/mjackson/status/682698900407357440

I cobbled together a demo showing how to accomplish just that (assuming I'm understanding the question!).

https://github.com/pwmckenna/webpack-node-externals-demo

Please chime in. There was a noParse solution floating around, and I'd love to hear how they differ.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions