fix warning with module as external dependency

This commit is contained in:
Pooya Parsa 2017-07-22 22:25:26 +04:30
parent 59c7c5b09d
commit efe3e95568

View File

@ -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',