Skip to content

Commit

Permalink
fix: output target of shuvi.config.tst got overwrited by user tscoonf…
Browse files Browse the repository at this point in the history
…ig.json
  • Loading branch information
liximomo committed Sep 15, 2022
1 parent ef064bc commit a9d5d27
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/toolpack/src/utils/bundleRequire.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ export async function bundleRequire(filepath: string, options: Options = {}) {
absWorkingDir: cwd,
outfile,
format: 'cjs',
target: 'es6',
platform: 'node',
sourcemap: 'inline',
bundle: true,
Expand Down
5 changes: 4 additions & 1 deletion test/fixtures/typescript/shuvi.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import { defineConfig } from 'shuvi';

const ssr = true;

export default defineConfig({
ssr: true
ssr
});

0 comments on commit a9d5d27

Please sign in to comment.