Skip to content

Commit

Permalink
fix: bundle source-map for client
Browse files Browse the repository at this point in the history
  • Loading branch information
arbassett committed Dec 29, 2021
1 parent a31eec7 commit 2cf71fc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/vite/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,16 @@ const clientConfig = {
input: path.resolve(__dirname, 'src/client/client.ts'),
external: ['./env', '@vite/env'],
plugins: [
nodeResolve(),
typescript({
target: 'es2018',
include: ['src/client/**/*.ts'],
baseUrl: path.resolve(__dirname, 'src/client'),
paths: {
'types/*': ['../../types/*']
}
})
}),
commonjs({ extensions: ['.js', '.ts'], sourceMap: true })
],
output: {
file: path.resolve(__dirname, 'dist/client', 'client.mjs'),
Expand Down
9 changes: 9 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2cf71fc

Please sign in to comment.