Skip to content

Commit

Permalink
chore: generate sourcemap in dev (#1920)
Browse files Browse the repository at this point in the history
  • Loading branch information
CHOYSEN committed Feb 11, 2023
1 parent e3879be commit 35a1760
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -51,7 +51,7 @@
"scripts": {
"dev": "rimraf dist && run-s dev-shared dev-start",
"dev-start": "run-p dev-client dev-node dev-watch",
"dev-client": "tsc -w -p src/client",
"dev-client": "tsc --sourcemap -w -p src/client",
"dev-node": "DEV=true pnpm build-node -w",
"dev-shared": "node scripts/copyShared",
"dev-watch": "node scripts/watchAndCopy",
Expand Down
3 changes: 2 additions & 1 deletion rollup.config.ts
Expand Up @@ -52,7 +52,8 @@ const esmBuild: RollupOptions = {
format: 'esm',
entryFileNames: `[name].js`,
chunkFileNames: 'serve-[hash].js',
dir: r('dist/node')
dir: r('dist/node'),
sourcemap: DEV
},
external,
plugins,
Expand Down

0 comments on commit 35a1760

Please sign in to comment.