From c743f19551a0763c607dbfd03ccb40f78c45c0aa Mon Sep 17 00:00:00 2001 From: Jerko Steiner Date: Tue, 19 Nov 2019 13:08:47 -0300 Subject: [PATCH] Add acorn dependency I'm not clear on why this is needed (currently offline so cannot check). Browserify doesn't work without it since we removed pug which bundled a bunch of weird dev libraries, such as acorn (commit 2d14e5f). --- package-lock.json | 6 ++++++ package.json | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index ea0b2f1..b78b22c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2785,6 +2785,12 @@ } } }, + "acorn": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.1.0.tgz", + "integrity": "sha512-kL5CuoXA/dgxlBbVrflsflzQ3PAas7RYZB52NOm/6839iVYJgKMJ3cQJD+t2i5+qFa8h3MDpEOJiS64E8JLnSQ==", + "dev": true + }, "acorn-dynamic-import": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/acorn-dynamic-import/-/acorn-dynamic-import-4.0.0.tgz", diff --git a/package.json b/package.json index d9307f5..867b826 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "test": "jest", "test:coverage": "jest --coverage", "test:watch": "jest --watch", - "js": "browserify -g [ loose-envify purge --NODE_ENV production ] -t babelify ./lib/client/index.js -o ./build/index.prod.js", + "js": "browserify ./lib/client/index.js -o ./build/index.prod.js", "js:watch": "watchify -p tsify ./src/client/index.tsx -v -d -o ./build/index.js", "js:uglify": "minify build/index.prod.js -o build/index.js", "css": "node-sass ./src/scss/style.scss -o ./build/", @@ -80,6 +80,7 @@ "@types/uuid": "^3.4.6", "@typescript-eslint/eslint-plugin": "^2.7.0", "@typescript-eslint/parser": "^2.7.0", + "acorn": "^7.1.0", "babel-core": "^7.0.0-bridge.0", "babel-minify": "^0.5.1", "babelify": "^10.0.0",