File tree Expand file tree Collapse file tree 4 files changed +10
-5
lines changed Expand file tree Collapse file tree 4 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 1+ {
2+ "singleQuote": true,
3+ "trailingComma": "es5",
4+ "tabWidth": 4
5+ }
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ install: package.json ## Install dependencies
1010 @$(PKG ) install
1111
1212watch : # # continuously compile ES6 files to JS
13- NODE_ENV=development ./node_modules/.bin/rollup -c --watch
13+ NODE_ENV=development ./node_modules/.bin/webpack --watch
1414
1515test : # # Launch unit tests
1616 @NODE_ENV=test ./node_modules/.bin/jest
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ module.exports = {
2121 } ,
2222 ] ,
2323 ] ,
24- plugins : [ 'add-module-exports' , '@babel/plugin-external-helpers' ] ,
24+ plugins : [ 'add-module-exports' ] ,
2525 } ,
2626 production : {
2727 presets : [
@@ -32,7 +32,7 @@ module.exports = {
3232 } ,
3333 ] ,
3434 ] ,
35- plugins : [ 'add-module-exports' , '@babel/plugin-external-helpers' ] ,
35+ plugins : [ 'add-module-exports' ] ,
3636 } ,
3737 } ,
3838} ;
Original file line number Diff line number Diff line change @@ -5,15 +5,15 @@ let libraryName = 'json-graphql-server';
55let plugins = [ ] ;
66let outputFile ;
77
8- if ( process . env . node_env === 'production' ) {
8+ if ( process . env . NODE_ENV === 'production' ) {
99 outputFile = target => `${ libraryName } .${ target } .min.js` ;
1010} else {
1111 outputFile = target => `${ libraryName } .${ target } .js` ;
1212}
1313
1414const defaultConfig = {
1515 devtool : 'source-map' ,
16- mode : process . env . node_env === 'production' ? 'production' : 'development' ,
16+ mode : process . env . NODE_ENV === 'production' ? 'production' : 'development' ,
1717 module : {
1818 rules : [
1919 {
You can’t perform that action at this time.
0 commit comments