Skip to content Skip to sidebar Skip to footer

Webpack Equivalent For Browserify Shiming(global) Of Already Included Modules

I am wondering what the webpack equivalent of browserify shiming is? I develop a widget using npm and webpack which is included in another app. This other app already includes mome

Solution 1:

I figured it out. I put the following in my webpack.config.js:

externals: {
  'moment': 'moment',
},

Post a Comment for "Webpack Equivalent For Browserify Shiming(global) Of Already Included Modules"