Skip to content

Commit

Permalink
chore(build): correct rollup options
Browse files Browse the repository at this point in the history
  • Loading branch information
gugu committed Oct 2, 2024
1 parent 77231fb commit 137204c
Show file tree
Hide file tree
Showing 2 changed files with 111 additions and 84 deletions.
183 changes: 102 additions & 81 deletions package-lock.json

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

12 changes: 9 additions & 3 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ export default [{
name: 'pngQrCode',
sourcemap: true
},
plugins: [typescript(), nodeResolve(), commonjs()]
plugins: [typescript({
outDir: 'lib/browser'
}), nodeResolve(), commonjs()]
}, {
input: 'src/svg.ts',
output: {
Expand All @@ -20,7 +22,9 @@ export default [{
name: 'svgQrCode',
sourcemap: true
},
plugins: [typescript(), nodeResolve(), commonjs()]
plugins: [typescript({
outDir: 'lib/browser'
}), nodeResolve(), commonjs()]
}, {
input: 'src/pdf.ts',
output: {
Expand All @@ -29,5 +33,7 @@ export default [{
name: 'pdfQrCode',
sourcemap: true
},
plugins: [typescript(), nodeResolve(), commonjs(), json()]
plugins: [typescript({
outDir: 'lib/browser'
}), nodeResolve(), commonjs(), json()]
}];

0 comments on commit 137204c

Please sign in to comment.