From 28ef5e85c872d2cbced3308ed5318ee30feecb73 Mon Sep 17 00:00:00 2001 From: Winston Liu Date: Sat, 10 Feb 2024 15:48:57 -0800 Subject: [PATCH] Add path polyfill --- language-service/package-lock.json | 13 +++++++++++++ language-service/package.json | 1 + language-service/webpack.config.js | 1 + 3 files changed, 15 insertions(+) diff --git a/language-service/package-lock.json b/language-service/package-lock.json index 37437d5..6ed5bca 100644 --- a/language-service/package-lock.json +++ b/language-service/package-lock.json @@ -25,6 +25,7 @@ "mocha-junit-reporter": "^2.0.0", "nyc": "^15.1.0", "os-browserify": "^0.3.0", + "path-browserify": "^1.0.1", "rimraf": "^3.0.2", "source-map-support": "^0.5.19", "ts-loader": "^8.0.17", @@ -2984,6 +2985,12 @@ "node": ">=8" } }, + "node_modules/path-browserify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-1.0.1.tgz", + "integrity": "sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==", + "dev": true + }, "node_modules/path-exists": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", @@ -6367,6 +6374,12 @@ "release-zalgo": "^1.0.0" } }, + "path-browserify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-1.0.1.tgz", + "integrity": "sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==", + "dev": true + }, "path-exists": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", diff --git a/language-service/package.json b/language-service/package.json index a93aa86..eff574a 100644 --- a/language-service/package.json +++ b/language-service/package.json @@ -52,6 +52,7 @@ "mocha-junit-reporter": "^2.0.0", "nyc": "^15.1.0", "os-browserify": "^0.3.0", + "path-browserify": "^1.0.1", "rimraf": "^3.0.2", "source-map-support": "^0.5.19", "ts-loader": "^8.0.17", diff --git a/language-service/webpack.config.js b/language-service/webpack.config.js index 86d8f8b..35c095c 100644 --- a/language-service/webpack.config.js +++ b/language-service/webpack.config.js @@ -24,6 +24,7 @@ module.exports = { buffer: require.resolve('buffer/'), fs: false, os: require.resolve('os-browserify/browser'), + path: require.resolve('path-browserify'), } }, mode: 'production',