Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(build): make rollupOutputOptions and rollupPluginVueOptions overridable #1117

Merged
merged 2 commits into from
Nov 24, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
feat(build): Override Rollup options in ssrBuild
  • Loading branch information
frandiox authored Nov 19, 2020
commit df566c59ecc49ec6c73d5777b50cc293d2519145
12 changes: 6 additions & 6 deletions src/node/build/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -679,22 +679,22 @@ export async function ssrBuild(
outDir: 'dist-ssr',
...options,
rollupPluginVueOptions: {
...rollupPluginVueOptions,
target: 'node'
target: 'node',
...rollupPluginVueOptions
},
rollupInputOptions: {
...rollupInputOptions,
external: resolveExternal(
rollupInputOptions && rollupInputOptions.external
)
),
...rollupInputOptions
aleclarson marked this conversation as resolved.
Show resolved Hide resolved
},
rollupOutputOptions: {
...rollupOutputOptions,
format: 'cjs',
exports: 'named',
entryFileNames: '[name].js',
// 764 add `Symbol.toStringTag` when build es module into cjs chunk
namespaceToStringTag: true
namespaceToStringTag: true,
...rollupOutputOptions
},
emitIndex: false,
emitAssets: false,
Expand Down