Skip to content

Commit

Permalink
Force ES6 for browser build
Browse files Browse the repository at this point in the history
This prevents a `module is not defined` error
  • Loading branch information
johngodley committed Jun 30, 2021
1 parent a387c1e commit ec71feb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"start": "BUILD_ENV=es6 babel src --out-dir build-module --source-maps --ignore 'src/**/__tests__/*.js' --copy-files --no-copy-ignored --watch",
"build:es6": "BUILD_ENV=es6 babel src --out-dir build-module --source-maps --ignore 'src/**/__tests__/*.js' --copy-files --no-copy-ignored",
"build:cjs": "BUILD_ENV=cjs babel src --out-dir build --source-maps --ignore 'src/**/__tests__/*.js' --copy-files --no-copy-ignored",
"build:browser": "NODE_ENV=production webpack --mode production --progress --config ./webpack.config.browser.js",
"build:browser": "BUILD_ENV=es6 NODE_ENV=production webpack --mode production --progress --config ./webpack.config.browser.js",
"build:types": "tsc --build",
"build": "yarn build:es6 && yarn build:cjs && yarn build:browser && yarn build:types",
"clean": "rm -rf build build-module build-browser build-types dist",
Expand Down

0 comments on commit ec71feb

Please sign in to comment.