Skip to content

Commit de4e08d

Browse files
authored
build: add source map to vite (#2843)
1 parent 1451b78 commit de4e08d

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

packages/vite/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"@rollup/plugin-dynamic-import-vars": "^1.1.1",
6161
"@rollup/plugin-json": "^4.1.0",
6262
"@rollup/plugin-node-resolve": "^11.0.1",
63-
"@rollup/plugin-typescript": "^8.0.0",
63+
"@rollup/plugin-typescript": "^8.2.1",
6464
"@rollup/pluginutils": "^4.1.0",
6565
"@types/clean-css": "^4.2.3",
6666
"@types/convert-source-map": "^1.5.1",

packages/vite/rollup.config.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ const envConfig = {
2626
})
2727
],
2828
output: {
29-
dir: path.resolve(__dirname, 'dist/client')
29+
dir: path.resolve(__dirname, 'dist/client'),
30+
sourcemap: true
3031
}
3132
}
3233

@@ -47,7 +48,8 @@ const clientConfig = {
4748
})
4849
],
4950
output: {
50-
dir: path.resolve(__dirname, 'dist/client')
51+
dir: path.resolve(__dirname, 'dist/client'),
52+
sourcemap: true
5153
}
5254
}
5355

@@ -67,7 +69,8 @@ const sharedNodeOptions = {
6769
exports: 'named',
6870
format: 'cjs',
6971
externalLiveBindings: false,
70-
freeze: false
72+
freeze: false,
73+
sourcemap: true
7174
},
7275
onwarn(warning, warn) {
7376
// node-resolve complains a lot about this but seems to still work?

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@
831831
is-module "^1.0.0"
832832
resolve "^1.19.0"
833833

834-
"@rollup/plugin-typescript@^8.0.0":
834+
"@rollup/plugin-typescript@^8.2.1":
835835
version "8.2.1"
836836
resolved "https://registry.yarnpkg.com/@rollup/plugin-typescript/-/plugin-typescript-8.2.1.tgz#f1a32d4030cc83432ce36a80a922280f0f0b5d44"
837837
integrity sha512-Qd2E1pleDR4bwyFxqbjt4eJf+wB0UKVMLc7/BAFDGVdAXQMCsD4DUv5/7/ww47BZCYxWtJqe1Lo0KVNswBJlRw==

0 commit comments

Comments
 (0)