Skip to content

Commit

Permalink
build: add source map to vite (#2843)
Browse files Browse the repository at this point in the history
  • Loading branch information
yaquawa committed Apr 4, 2021
1 parent 1451b78 commit de4e08d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"@rollup/plugin-dynamic-import-vars": "^1.1.1",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^11.0.1",
"@rollup/plugin-typescript": "^8.0.0",
"@rollup/plugin-typescript": "^8.2.1",
"@rollup/pluginutils": "^4.1.0",
"@types/clean-css": "^4.2.3",
"@types/convert-source-map": "^1.5.1",
Expand Down
9 changes: 6 additions & 3 deletions packages/vite/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ const envConfig = {
})
],
output: {
dir: path.resolve(__dirname, 'dist/client')
dir: path.resolve(__dirname, 'dist/client'),
sourcemap: true
}
}

Expand All @@ -47,7 +48,8 @@ const clientConfig = {
})
],
output: {
dir: path.resolve(__dirname, 'dist/client')
dir: path.resolve(__dirname, 'dist/client'),
sourcemap: true
}
}

Expand All @@ -67,7 +69,8 @@ const sharedNodeOptions = {
exports: 'named',
format: 'cjs',
externalLiveBindings: false,
freeze: false
freeze: false,
sourcemap: true
},
onwarn(warning, warn) {
// node-resolve complains a lot about this but seems to still work?
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,7 @@
is-module "^1.0.0"
resolve "^1.19.0"

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

0 comments on commit de4e08d

Please sign in to comment.