File tree 2 files changed +21
-6
lines changed
2 files changed +21
-6
lines changed Original file line number Diff line number Diff line change 1
1
{
2
- "presets" : [
3
- " react" ,
4
- [ " es2015" , { "loose" : true } ]
5
- ],
6
- "plugins" : [ " transform-runtime" , " transform-object-rest-spread" ]
2
+
3
+ "env" : {
4
+ "development" : {
5
+ "presets" : [
6
+ " react" ,
7
+ [ " es2015" , { "loose" : true } ]
8
+ ],
9
+ "plugins" : [ " transform-runtime" , " transform-object-rest-spread" ]
10
+ },
11
+ "es" : {
12
+ "presets" : [
13
+ " react" ,
14
+ [ " es2015" , { "loose" : true , "modules" : false } ]
15
+ ],
16
+ "plugins" : [ " transform-runtime" , " transform-object-rest-spread" ],
17
+ }
18
+ }
7
19
}
Original file line number Diff line number Diff line change 3
3
"version" : " 0.10.0" ,
4
4
"description" : " React Component Wrapper for Google reCAPTCHA" ,
5
5
"main" : " lib/recaptcha-wrapper.js" ,
6
+ "module" : " lib/es/recaptcha-wrapper.js" ,
6
7
"directories" : {
7
8
"lib" : " lib/"
8
9
},
9
10
"scripts" : {
10
- "build" : " rm -rf lib && babel src --out-dir lib" ,
11
+ "build" : " rm -rf lib && npm run build:cjs && npm run build:es" ,
12
+ "build:cjs" : " babel src --out-dir lib" ,
13
+ "build:es" : " BABEL_ENV=es babel src --out-dir lib/es" ,
11
14
"lint" : " eslint ./" ,
12
15
"lint:fix" : " eslint ./ --fix" ,
13
16
"test" : " karma start --single-run" ,
You can’t perform that action at this time.
0 commit comments