diff --git a/build/rollup.config.js b/build/rollup.config.js index 3a55f6957f..f912f1cfc2 100755 --- a/build/rollup.config.js +++ b/build/rollup.config.js @@ -55,7 +55,7 @@ function genConfig (opts) { const config = { entry: opts.entry, dest: opts.dest, - external: ['fs', 'path', 'http'].concat(dependencies, opts.external), + external: ['fs', 'path', 'http', 'module'].concat(dependencies, opts.external), format: opts.format || 'cjs', banner: opts.banner || banner, moduleName: opts.moduleName || 'Nuxt',