forked from preactjs/preact
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move babel settings to a .babelrc (preactjs#828)
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
Showing
2 changed files
with
23 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters