File tree Expand file tree Collapse file tree 2 files changed +21
-6
lines changed
Expand file tree Collapse file tree 2 files changed +21
-6
lines changed Original file line number Diff line number Diff line change 11{
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+ }
719}
Original file line number Diff line number Diff line change 33 "version" : " 0.9.7" ,
44 "description" : " React Component Wrapper for Google reCAPTCHA" ,
55 "main" : " lib/recaptcha-wrapper.js" ,
6+ "module" : " lib/es/recaptcha-wrapper.js" ,
67 "directories" : {
78 "lib" : " lib/"
89 },
910 "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" ,
1114 "lint" : " eslint ./" ,
1215 "lint:fix" : " eslint ./ --fix" ,
1316 "test" : " karma start --single-run" ,
You can’t perform that action at this time.
0 commit comments