Skip to content

Commit

Permalink
enable sourcemaps in rollup config
Browse files Browse the repository at this point in the history
  • Loading branch information
raycohen authored and Ray Cohen committed Feb 27, 2018
1 parent 1b1d226 commit fcc8eb8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ There are some existing React library boilerplates, but none of them fulfilled t
- Support importing CSS in your components (with css modules enabled by default)
- Note that CSS support will be a noop if you're using css-in-js
- Testing with [Jest](https://facebook.github.io/jest/), using `react-scripts` from `create-react-app`
- Sourcemap creation enabled by default
- Thorough documentation written by someone who cares :heart_eyes:

## Walkthrough
Expand Down
6 changes: 4 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@ export default {
output: [
{
file: pkg.main,
format: 'cjs'
format: 'cjs',
sourcemap: true
},
{
file: pkg.module,
format: 'es'
format: 'es',
sourcemap: true
}
],
plugins: [
Expand Down

0 comments on commit fcc8eb8

Please sign in to comment.