From 5cd465ea508a5b99e0b84a5b498f7ce41900166e Mon Sep 17 00:00:00 2001 From: Austin Johnson Date: Thu, 28 Mar 2024 12:27:41 -0400 Subject: [PATCH] Fix webpack issue with 'vm' --- package-lock.json | 16 +++++++++++----- package.json | 5 +++-- webpack.config.js | 1 + 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index 60c5d070..7ee3c8d3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "aws-lex-web-ui", - "version": "0.21.0", + "version": "0.21.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "aws-lex-web-ui", - "version": "0.21.0", + "version": "0.21.1", "license": "SEE LICENSE IN LICENSE", "dependencies": { "amazon-cognito-auth-js": "^1.2.4", @@ -18,7 +18,8 @@ "process": "^0.11.10", "regenerator-runtime": "^0.13.5", "stream-browserify": "^3.0.0", - "util": "^0.12.5" + "util": "^0.12.5", + "vm-browserify": "^1.1.2" }, "devDependencies": { "@babel/core": "^7.23.5", @@ -46,8 +47,8 @@ "webpack-dev-server": "^4.15.1" }, "engines": { - "node": ">=16.0.0", - "npm": ">=7.8.0" + "node": ">=18.0.0", + "npm": ">=10.0.0" } }, "node_modules/@aashutoshrathi/word-wrap": { @@ -11908,6 +11909,11 @@ "node": ">= 0.8" } }, + "node_modules/vm-browserify": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vm-browserify/-/vm-browserify-1.1.2.tgz", + "integrity": "sha512-2ham8XPWTONajOR0ohOKOHXkm3+gaBmGut3SRuu75xLd/RRaY6vqgh8NBYYk7+RW3u5AtzPQZG8F10LHkl0lAQ==" + }, "node_modules/w3c-xmlserializer": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-4.0.0.tgz", diff --git a/package.json b/package.json index 786a0d43..b5221e6f 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,8 @@ "process": "^0.11.10", "regenerator-runtime": "^0.13.5", "stream-browserify": "^3.0.0", - "util": "^0.12.5" + "util": "^0.12.5", + "vm-browserify": "^1.1.2" }, "devDependencies": { "@babel/core": "^7.23.5", @@ -73,4 +74,4 @@ "browserslist": [ "defaults and fully supports es6-module" ] -} \ No newline at end of file +} diff --git a/webpack.config.js b/webpack.config.js index 6f5179bc..45c749ea 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -41,6 +41,7 @@ module.exports = (env) => { buffer: require.resolve('buffer/'), stream: require.resolve('stream-browserify'), 'process/browser': require.resolve('process/browser'), + "vm": require.resolve("vm-browserify"), }, }, module: {