mirror of
https://github.com/vuejs/vue.git
synced 2024-11-22 04:39:46 +00:00
build: externalize stream to avoid warning
This commit is contained in:
parent
5fb1c9d62a
commit
c63d43c830
@ -151,18 +151,24 @@ const builds = {
|
||||
dest: resolve('packages/vue-server-renderer/build.dev.js'),
|
||||
format: 'cjs',
|
||||
env: 'development',
|
||||
external: Object.keys(
|
||||
require('../packages/vue-server-renderer/package.json').dependencies
|
||||
)
|
||||
external: [
|
||||
'stream',
|
||||
...Object.keys(
|
||||
require('../packages/vue-server-renderer/package.json').dependencies
|
||||
)
|
||||
]
|
||||
},
|
||||
'web-server-renderer-prod': {
|
||||
entry: resolve('web/entry-server-renderer.ts'),
|
||||
dest: resolve('packages/vue-server-renderer/build.prod.js'),
|
||||
format: 'cjs',
|
||||
env: 'production',
|
||||
external: Object.keys(
|
||||
require('../packages/vue-server-renderer/package.json').dependencies
|
||||
)
|
||||
external: [
|
||||
'stream',
|
||||
...Object.keys(
|
||||
require('../packages/vue-server-renderer/package.json').dependencies
|
||||
)
|
||||
]
|
||||
},
|
||||
'web-server-renderer-basic': {
|
||||
entry: resolve('web/entry-server-basic-renderer.ts'),
|
||||
|
Loading…
Reference in New Issue
Block a user