Skip to content

Commit

Permalink
Move babel settings to a .babelrc (preactjs#828)
Browse files Browse the repository at this point in the history
Since the .babelrc doesn't match the package's `files` list, it won't
be included in the published package. This means that users who don't
exclude node_modules from transpilation will be able to use preact
without it requiring them to have preact's internal babel presets and
plugins installed (which isn't necessary if they're depending on the
pre-transpiled version in dist)
  • Loading branch information
rmacklin authored and developit committed Aug 26, 2017
1 parent b33d837 commit d6ab85c
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
23 changes: 23 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"presets": [
[
"env",
{
"loose": true,
"exclude": [
"transform-es2015-typeof-symbol"
],
"targets": {
"browsers": [
"last 2 versions",
"IE >= 9"
]
}
}
]
],
"plugins": [
"transform-object-rest-spread",
"transform-react-jsx"
]
}
23 changes: 0 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,29 +118,6 @@
"uglify-js": "^2.7.5",
"webpack": "^2.4.1"
},
"babel": {
"presets": [
[
"env",
{
"loose": true,
"exclude": [
"transform-es2015-typeof-symbol"
],
"targets": {
"browsers": [
"last 2 versions",
"IE >= 9"
]
}
}
]
],
"plugins": [
"transform-object-rest-spread",
"transform-react-jsx"
]
},
"greenkeeper": {
"ignore": [
"babel-cli",
Expand Down

0 comments on commit d6ab85c

Please sign in to comment.