Skip to content

Commit

Permalink
Merge pull request #13 from raycohen/build-sourcemap
Browse files Browse the repository at this point in the history
Enable sourcemaps in rollup config by default
  • Loading branch information
transitive-bullshit committed Feb 27, 2018
2 parents 1b1d226 + fcc8eb8 commit 13899ba
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 13899ba

Please sign in to comment.