File tree Expand file tree Collapse file tree 4 files changed +21
-21
lines changed
Expand file tree Collapse file tree 4 files changed +21
-21
lines changed Original file line number Diff line number Diff line change 11{
2- "presets" : [" env" ],
2+ "presets" : [
3+ [
4+ " env" ,
5+ {
6+ "targets" : {
7+ "node" : " 8"
8+ }
9+ }
10+ ]
11+ ],
312 "plugins" : [
4- [" transform-runtime" , {
5- "helpers" : false ,
6- "polyfill" : false ,
7- "regenerator" : true
8- }],
9- " add-module-exports" ,
10- " transform-async-to-generator" ,
11- " transform-class-properties" ,
12- " transform-object-rest-spread"
13+ " transform-class-properties"
1314 ]
1415}
Original file line number Diff line number Diff line change 11node_modules
2- lib
2+ dist
33yarn.lock
Original file line number Diff line number Diff line change 22 "name" : " platformio-node-helpers" ,
33 "version" : " 3.4.0" ,
44 "description" : " Collection of Node.JS helpers for PlatformIO" ,
5- "main" : " lib /index.js" ,
5+ "main" : " dist /index.js" ,
66 "scripts" : {
77 "build" : " webpack --env build" ,
88 "dev" : " webpack --progress --colors --watch --env dev" ,
6161 "ws" : " ^6.1.1"
6262 },
6363 "devDependencies" : {
64- "babel-core" : " ^6.26.0" ,
64+ "@types/node" : " ^8" ,
65+ "@babel/core" : " ^7.1.6" ,
66+ "babel-loader" : " ^8.0.4" ,
6567 "babel-eslint" : " ^8.0.2" ,
66- "babel-loader" : " ^7.1.2" ,
67- "babel-plugin-add-module-exports" : " ^0.2.1" ,
68- "babel-plugin-transform-async-to-generator" : " ^6.24.1" ,
6968 "babel-plugin-transform-class-properties" : " ^6.24.1" ,
70- "babel-plugin-transform-object-rest-spread" : " ^6.26.0" ,
7169 "babel-plugin-transform-runtime" : " ^6.23.0" ,
7270 "babel-preset-env" : " ^1.7.0" ,
7371 "eslint" : " ^5.1.0" ,
Original file line number Diff line number Diff line change @@ -16,20 +16,21 @@ module.exports = {
1616 mode : 'production' ,
1717 entry : __dirname + '/src/index.js' ,
1818 output : {
19- path : __dirname + '/lib' ,
19+ path : path . join ( __dirname , 'dist' ) ,
2020 filename : 'index.js' ,
2121 library : 'platformio-node-helpers' ,
2222 libraryTarget : 'umd' ,
2323 umdNamedDefine : true
2424 } ,
25+ devtool : 'source-map' ,
2526 target : 'node' ,
26- externals : Object . keys ( packageConfig . dependencies ) . filter ( key => key !== 'ws' ) ,
27+ externals : Object . keys ( packageConfig . dependencies ) ,
2728 module : {
2829 rules : [
2930 {
3031 test : / \. j s $ / ,
3132 loader : 'babel-loader' ,
32- exclude : / ( n o d e _ m o d u l e s | b o w e r _ c o m p o n e n t s | p u b l i c ) /
33+ exclude : / n o d e _ m o d u l e s /
3334 }
3435 ]
3536 } ,
@@ -40,6 +41,6 @@ module.exports = {
4041 ] ,
4142 resolve : {
4243 modules : [ path . resolve ( './node_modules' ) , path . resolve ( './src' ) ] ,
43- extensions : [ '.json' , '. js']
44+ extensions : [ '.js' ]
4445 }
4546} ;
You can’t perform that action at this time.
0 commit comments