Skip to content

Commit

Permalink
chore: upgrade yeoman-environment dependency (#835)
Browse files Browse the repository at this point in the history
  • Loading branch information
veredcon authored May 27, 2024
1 parent 901ff4f commit 299f91f
Show file tree
Hide file tree
Showing 3 changed files with 334 additions and 456 deletions.
2 changes: 1 addition & 1 deletion packages/backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@
"strip-ansi": "6.0.0",
"sudo-prompt": "9.2.1",
"titleize": "2.1.0",
"yeoman-environment": "3.3.0"
"yeoman-environment": "3.19.3"
},
"devDependencies": {
"@types/cheerio": "^0.22.31",
Expand Down
25 changes: 25 additions & 0 deletions packages/backend/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ const config = {
node: { global: true },
entry: ["./src/extension.ts"], // the entry point of this extension, 📖 -> https://webpack.js.org/configuration/entry-context/
devtool: "source-map",
optimization: {
// The Default minimization options can sometimes cause JavaScript runtime errors.
// Also we don't actually need to minimize as much (not targeted for browser).
// Rather we mostly need to reduce the number of fileSystem access requests
// by reducing the number of files packaged inside our VSCode extensions
minimize: false,
},
output: {
// the bundle is stored in the 'dist' folder (check package.json), 📖 -> https://webpack.js.org/configuration/output/
path: path.resolve(__dirname, "dist"),
Expand Down Expand Up @@ -163,6 +170,24 @@ const config = {
flags: "g",
},
},
{
test: /yeoman-environment[/|\\]lib[/|\\]util[/|\\]esm.js/,
loader: "string-replace-loader",
options: {
search: "require[(]fileToImport",
replace: "__non_webpack_require__(fileToImport",
flags: "g",
},
},
{
test: /yeoman-environment[/|\\]lib[/|\\]util[/|\\]esm.js/,
loader: "string-replace-loader",
options: {
search: "import[(]pathToFileURL",
replace: "__non_webpack_require__(pathToFileURL",
flags: "g",
},
},
{
test: /node_modules[/|\\]download-stats[/|\\]lib[/|\\]utils.js/,
loader: "string-replace-loader",
Expand Down
Loading

0 comments on commit 299f91f

Please sign in to comment.