Skip to content

Commit

Permalink
Expose secretInternals in all environments & bundles
Browse files Browse the repository at this point in the history
  • Loading branch information
kitten committed Mar 2, 2018
1 parent 9cf0fe6 commit 9fce3bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ const prodUmdConfig = Object.assign({}, umdConfig, {
plugins: umdConfig.plugins.concat([
replace({
'process.env.NODE_ENV': JSON.stringify('production'),
"export * from './secretInternals'": '',
}),
uglify({
sourceMap: true,
Expand Down Expand Up @@ -104,15 +103,16 @@ const browserConfig = Object.assign({}, configBase, {
plugins: configBase.plugins.concat(
replace({
__SERVER__: JSON.stringify(false),
"export * from './secretInternals'": '',
}),
ignore(['stream'])
),
})

const nativeConfig = Object.assign({}, configBase, {
input: 'src/native/index.js',
output: Object.assign({}, cjs, { file: 'dist/styled-components.native.cjs.js' }),
output: Object.assign({}, cjs, {
file: 'dist/styled-components.native.cjs.js',
}),
external: configBase.external.concat('react-native'),
})

Expand Down

0 comments on commit 9fce3bf

Please sign in to comment.