Skip to content

Commit 13899ba

Browse files
Merge pull request #13 from raycohen/build-sourcemap
Enable sourcemaps in rollup config by default
2 parents 1b1d226 + fcc8eb8 commit 13899ba

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ There are some existing React library boilerplates, but none of them fulfilled t
2727
- Support importing CSS in your components (with css modules enabled by default)
2828
- Note that CSS support will be a noop if you're using css-in-js
2929
- Testing with [Jest](https://facebook.github.io/jest/), using `react-scripts` from `create-react-app`
30+
- Sourcemap creation enabled by default
3031
- Thorough documentation written by someone who cares :heart_eyes:
3132

3233
## Walkthrough

rollup.config.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@ export default {
1111
output: [
1212
{
1313
file: pkg.main,
14-
format: 'cjs'
14+
format: 'cjs',
15+
sourcemap: true
1516
},
1617
{
1718
file: pkg.module,
18-
format: 'es'
19+
format: 'es',
20+
sourcemap: true
1921
}
2022
],
2123
plugins: [

0 commit comments

Comments
 (0)