File tree 3 files changed +14
-3
lines changed
3 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"presets" : [
3
- " es2015" ,
3
+ " ./build/preset- es2015" ,
4
4
" react" ,
5
5
" stage-1"
6
6
],
7
7
"plugins" : [
8
- " lodash" ,
9
8
" transform-react-handled-props" ,
10
9
[" transform-react-remove-prop-types" , {
11
10
"mode" : " wrap"
Original file line number Diff line number Diff line change
1
+ const options = process . env . BABEL_ENV === 'es' ? { modules : false } : { }
2
+ const plugins = process . env . BABEL_ENV === 'es' ? [ ] : [ 'lodash' ]
3
+
4
+ module . exports = {
5
+ presets : [
6
+ [ 'es2015' , options ]
7
+ ] ,
8
+ plugins,
9
+ }
Original file line number Diff line number Diff line change 3
3
"version" : " 0.64.3" ,
4
4
"description" : " The official Semantic-UI-React integration." ,
5
5
"main" : " dist/commonjs/index.js" ,
6
+ "jsnext:main" : " dist/es/index.js" ,
6
7
"files" : [
7
8
" src" ,
8
9
" dist" ,
9
10
" index.d.ts"
10
11
],
11
12
"scripts" : {
12
13
"docs" : " gulp docs" ,
13
- "build" : " npm run build:commonjs && npm run build:umd && npm run build:docs" ,
14
+ "build" : " npm run build:commonjs && npm run build:es && npm run build: umd && npm run build:docs" ,
14
15
"prebuild:commonjs" : " rimraf dist/commonjs" ,
15
16
"build:commonjs" : " babel src -d dist/commonjs && npm run tsd" ,
17
+ "prebuild:es" : " rimraf dist/es" ,
18
+ "build:es" : " cross-env BABEL_ENV=es babel src -d dist/es" ,
16
19
"prebuild:docs" : " npm run build:docs-toc" ,
17
20
"build:dll" : " gulp dll" ,
18
21
"build:docs" : " gulp build:docs" ,
You can’t perform that action at this time.
0 commit comments