Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Useful external option of webpack config
externals: [
function(context, request, callback) {
if ((/packages\/[^\/]+\//g).test(context)){
if (!/^\./g.test(request)) {
console.log("exclude", request);
return callback(null, 'commonjs ' + request);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.