Skip to content

Commit

Permalink
v0.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasdigby committed Feb 14, 2018
1 parent e781681 commit c219eae
Show file tree
Hide file tree
Showing 3 changed files with 137 additions and 243 deletions.
19 changes: 9 additions & 10 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,20 @@ const config = {
require.resolve('babel-preset-react')
],
plugins: [
require.resolve('babel-plugin-external-helpers'),
require.resolve('babel-plugin-transform-object-rest-spread'),
require.resolve('babel-plugin-syntax-dynamic-import'),
require.resolve('babel-plugin-syntax-dynamic-import')
]
}

if (process.env.NODE_ENV === 'production') {
config.plugins.push(
[
require.resolve('babel-plugin-transform-react-remove-prop-types'),
{
mode: 'wrap',
ignoreFilenames: ['node_modules']
}
]
)
config.plugins.push([
require.resolve('babel-plugin-transform-react-remove-prop-types'),
{
mode: 'wrap',
ignoreFilenames: ['node_modules']
}
])
}

module.exports = config
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shortlist-studio/babel-preset-standard",
"version": "0.1.0",
"version": "0.1.2",
"description": "Standard Babel configuration for Shortlist projects",
"main": "index.js",
"files": [
Expand All @@ -11,6 +11,7 @@
"babel-core": "^6.26.0",
"babel-plugin-external-helpers": "^6.22.0",
"babel-plugin-syntax-dynamic-import": "^6.18.0",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-plugin-transform-react-remove-prop-types": "^0.4.12",
"babel-preset-env": "^1.6.1",
"babel-preset-react": "^6.24.1"
Expand Down
Loading

0 comments on commit c219eae

Please sign in to comment.