mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 15:22:39 +00:00
fix warning with module as external dependency
This commit is contained in:
parent
59c7c5b09d
commit
efe3e95568
@ -55,7 +55,7 @@ function genConfig (opts) {
|
|||||||
const config = {
|
const config = {
|
||||||
entry: opts.entry,
|
entry: opts.entry,
|
||||||
dest: opts.dest,
|
dest: opts.dest,
|
||||||
external: ['fs', 'path', 'http'].concat(dependencies, opts.external),
|
external: ['fs', 'path', 'http', 'module'].concat(dependencies, opts.external),
|
||||||
format: opts.format || 'cjs',
|
format: opts.format || 'cjs',
|
||||||
banner: opts.banner || banner,
|
banner: opts.banner || banner,
|
||||||
moduleName: opts.moduleName || 'Nuxt',
|
moduleName: opts.moduleName || 'Nuxt',
|
||||||
|
Loading…
Reference in New Issue
Block a user