Skip to content

Commit

Permalink
Generate source maps
Browse files Browse the repository at this point in the history
  • Loading branch information
willeastcott committed Nov 8, 2024
1 parent 008507f commit 5be8b02
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,16 @@ const module = {
dir: `dist/module`,
entryFileNames: '[name].mjs',
format: 'esm',
preserveModules: true
preserveModules: true,
sourcemap: true
},
plugins: [
nodeResolve(),
replace(replacements),
typescript({
noEmitOnError: true,
tsconfig: 'tsconfig.json'
tsconfig: 'tsconfig.json',
sourceMap: true
})
],
treeshake: 'smallest',
Expand All @@ -68,14 +70,16 @@ const react_module = {
globals: {
'react': 'React'
},
preserveModules: true
preserveModules: true,
sourcemap: true
},
plugins: [
nodeResolve(),
replace(replacements),
typescript({
noEmitOnError: true,
tsconfig: 'react/tsconfig.json'
tsconfig: 'react/tsconfig.json',
sourceMap: true
})
],
treeshake: 'smallest',
Expand All @@ -94,7 +98,9 @@ const styles = {
insert: true,
output: false,
processor: css => postcss([autoprefixer])
.process(css)
.process(css, {
from: undefined
})
.then(result => result.css)
})
]
Expand Down

0 comments on commit 5be8b02

Please sign in to comment.