diff --git a/site/frontend/README.md b/site/frontend/README.md index 0991c6667..5e59afce5 100644 --- a/site/frontend/README.md +++ b/site/frontend/README.md @@ -26,3 +26,6 @@ It uses a custom backend for transpiling `TypeScript`, which transpiles for brow the `browserslist` attribute in `package.json`. It does not perform type-checking, that is why there is a dedicated `npm run check` action that uses `tsc`. It is performed on CI to find typ errors. The `tsconfig.json` file is only used by the type-checking action. + +The `buffer` alias in `package.json` is used to deter Parcel from providing `buffer` module +polyfill. This polyfill breaks the minified JS Parcel output (at least in Parcel `2.8.3`). diff --git a/site/frontend/package-lock.json b/site/frontend/package-lock.json index 0cf5511a5..7f3237b6b 100644 --- a/site/frontend/package-lock.json +++ b/site/frontend/package-lock.json @@ -22,7 +22,6 @@ "@parcel/transformer-vue": "^2.8.3", "@types/highcharts": "^7.0.0", "@types/msgpack-lite": "^0.1.8", - "buffer": "^5.7.1", "typescript": "^5.0.2" } }, @@ -1926,26 +1925,6 @@ "safe-buffer": "^5.0.1" } }, - "node_modules/base64-js": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", - "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, "node_modules/binary-extensions": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", @@ -2003,30 +1982,6 @@ "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" } }, - "node_modules/buffer": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", - "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" - } - }, "node_modules/buffer-from": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", diff --git a/site/frontend/package.json b/site/frontend/package.json index ef9c9bc8c..32fc57e66 100644 --- a/site/frontend/package.json +++ b/site/frontend/package.json @@ -14,7 +14,6 @@ "@parcel/transformer-vue": "^2.8.3", "@types/highcharts": "^7.0.0", "@types/msgpack-lite": "^0.1.8", - "buffer": "^5.7.1", "typescript": "^5.0.2" }, "dependencies": { @@ -52,5 +51,8 @@ "distDir": "dist/styles" } }, - "browserslist": "> 0.5%, last 3 years, not dead" + "browserslist": "> 0.5%, last 3 years, not dead", + "alias": { + "buffer": false + } }