From 0f2adad48a4b3c89fe89d4a70c994446d29745c3 Mon Sep 17 00:00:00 2001 From: sanketshevkar Date: Thu, 12 Dec 2024 10:05:22 +0530 Subject: [PATCH 1/3] fix(bug): test for a stable concerto package for browser Signed-off-by: sanketshevkar --- package-lock.json | 3 ++- packages/concerto-util/package.json | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index bc61466aa..b598b0bc5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14247,7 +14247,8 @@ "tmp-promise": "3.0.3", "typescript": "5.7.2", "undici": "^7.0.0", - "webpack": "5.96.1" + "webpack": "5.96.1", + "webpack-cli": "^5.1.4" }, "engines": { "node": ">=18", diff --git a/packages/concerto-util/package.json b/packages/concerto-util/package.json index 055532e18..2a328b0e8 100644 --- a/packages/concerto-util/package.json +++ b/packages/concerto-util/package.json @@ -49,6 +49,7 @@ "typescript": "5.7.2", "undici": "^7.0.0", "webpack": "5.96.1", + "webpack-cli": "^5.1.4", "sinon": "19.0.2" }, "dependencies": { From 3cdb99085b961c64d2fd2af6e41217d74f30c89d Mon Sep 17 00:00:00 2001 From: sanketshevkar Date: Thu, 12 Dec 2024 10:28:12 +0530 Subject: [PATCH 2/3] fix(bug): test for a stable concerto package for browser Signed-off-by: sanketshevkar --- packages/concerto-core/webpack.config.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/concerto-core/webpack.config.js b/packages/concerto-core/webpack.config.js index 273451895..f79d2ab0d 100644 --- a/packages/concerto-core/webpack.config.js +++ b/packages/concerto-core/webpack.config.js @@ -20,6 +20,8 @@ const NodePolyfillPlugin = require('node-polyfill-webpack-plugin'); const packageJson = require('./package.json'); +const emitWarningPollyfill = 'function(message, options){ console.warn({message: `DEPRECATED: ${message}`,type: options?.type,code: options?.code,detail: options?.detail});}'; + module.exports = { entry: './index.js', output: { @@ -44,7 +46,8 @@ module.exports = { new webpack.DefinePlugin({ 'process.env': { 'NODE_ENV': JSON.stringify('production') - } + }, + 'process.emitWarning': emitWarningPollyfill }), new webpack.ProvidePlugin({ Buffer: ['buffer', 'Buffer'], From 4380080a4e8474d465399bd0fc8baeee2a8919b6 Mon Sep 17 00:00:00 2001 From: sanketshevkar Date: Thu, 12 Dec 2024 10:29:40 +0530 Subject: [PATCH 3/3] fix(bug): test for a stable concerto package for browser Signed-off-by: sanketshevkar --- package-lock.json | 3 +-- packages/concerto-util/package.json | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index b598b0bc5..bc61466aa 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14247,8 +14247,7 @@ "tmp-promise": "3.0.3", "typescript": "5.7.2", "undici": "^7.0.0", - "webpack": "5.96.1", - "webpack-cli": "^5.1.4" + "webpack": "5.96.1" }, "engines": { "node": ">=18", diff --git a/packages/concerto-util/package.json b/packages/concerto-util/package.json index 2a328b0e8..055532e18 100644 --- a/packages/concerto-util/package.json +++ b/packages/concerto-util/package.json @@ -49,7 +49,6 @@ "typescript": "5.7.2", "undici": "^7.0.0", "webpack": "5.96.1", - "webpack-cli": "^5.1.4", "sinon": "19.0.2" }, "dependencies": {