From fcc8eb85a59d8366006cec0e41f094e89fda290f Mon Sep 17 00:00:00 2001 From: Raymond Cohen Date: Sat, 24 Feb 2018 07:49:15 -0500 Subject: [PATCH] enable sourcemaps in rollup config --- README.md | 1 + rollup.config.js | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 01032af..338fce1 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/rollup.config.js b/rollup.config.js index 84ca386..734b544 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -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: [