-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from KevinAst/next3
publish: v0.1.3 Establish Polyfill Strategy
- Loading branch information
Showing
7 changed files
with
9,370 additions
and
32 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 |
---|---|---|
@@ -1,19 +1,29 @@ | ||
{ | ||
"presets": ["es2015", "stage-1", "react"], | ||
"env": { | ||
"commonjs": { | ||
"plugins": [ | ||
["transform-es2015-modules-commonjs", { "loose": true }] | ||
// standard presets applying various plugins | ||
presets: [ | ||
"env", // babel-preset-env: supporting es2015, es2016, and es2017 (with configuration) | ||
"react" // babel-preset-react: react and jsx | ||
], | ||
|
||
// explicit plugins NOT part of the presets (above) ... prefer this over yearly presets | ||
plugins: [ | ||
"transform-object-rest-spread", // "object rest properties" (es2018 Stage 4) | ||
// ... ex: myFn({p1, p2, ...restParms}) | ||
], | ||
|
||
// additional plugins explicitly called out via the BABEL_ENV variable | ||
// ... see: build scripts in package.json | ||
env: { | ||
// BABEL_ENV=commonjs ... our CommonJS distribution (promoted in lib/ directory) | ||
commonjs: { | ||
plugins: [ | ||
["transform-es2015-modules-commonjs", { loose: true }] | ||
] | ||
}, | ||
"es": { | ||
"plugins": [ | ||
// BABEL_ENV=es ... for our ES distribution (promoted in lib/ directory) | ||
es: { | ||
plugins: [ | ||
] | ||
}, | ||
"test": { | ||
"plugins": [ | ||
["transform-es2015-modules-commonjs", { "loose": true }] | ||
] | ||
} | ||
} | ||
} |
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
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
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
Oops, something went wrong.