-
Notifications
You must be signed in to change notification settings - Fork 651
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added es build, which will get beneficial for es2015 modules aware bu…
…ndlers like webpack 2+ and rollup
- Loading branch information
Showing
9 changed files
with
101 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 |
---|---|---|
@@ -1,15 +1,5 @@ | ||
{ | ||
"presets": [ | ||
["latest", { | ||
"es2015": { "loose": true } | ||
}], | ||
"stage-2", | ||
"react" | ||
], | ||
"plugins": [ | ||
"dev-expression", | ||
"add-module-exports", | ||
"transform-object-assign", | ||
["transform-react-remove-prop-types", { mode: "wrap" }] | ||
], | ||
"./.babelrc.js" | ||
] | ||
} |
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,18 @@ | ||
const modules = process.env.BABEL_ENV === 'es' ? false : 'commonjs' | ||
|
||
const presets = [ | ||
['latest', { | ||
es2015: { loose: true, modules } | ||
}], | ||
'stage-2', | ||
'react' | ||
] | ||
|
||
const plugins = [ | ||
'dev-expression', | ||
'add-module-exports', | ||
'transform-object-assign', | ||
['transform-react-remove-prop-types', { mode: 'wrap' }] | ||
] | ||
|
||
module.exports = { plugins, presets } |
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,3 +1,4 @@ | ||
/es | ||
/lib | ||
|
||
# Logs | ||
|
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,7 @@ | ||
{ | ||
"name": "react-transition-group/CSSTransition", | ||
"private": true, | ||
"main": "../lib/CSSTransition.js", | ||
"module": "../es/CSSTransition.js", | ||
"jsnext:main": "../es/CSSTransition.js" | ||
} |
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,7 @@ | ||
{ | ||
"name": "react-transition-group/Transition", | ||
"private": true, | ||
"main": "../lib/Transition.js", | ||
"module": "../es/Transition.js", | ||
"jsnext:main": "../es/Transition.js" | ||
} |
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,7 @@ | ||
{ | ||
"name": "react-transition-group/TransitionGroup", | ||
"private": true, | ||
"main": "../lib/TransitionGroup.js", | ||
"module": "../es/TransitionGroup.js", | ||
"jsnext:main": "../es/TransitionGroup.js" | ||
} |
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