build: externalize stream to avoid warning

This commit is contained in:
Evan You 2022-05-20 15:26:18 +08:00
parent 5fb1c9d62a
commit c63d43c830

View File

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