Skip to content

Commit

Permalink
chore: bump webpack dependencies (#4346)
Browse files Browse the repository at this point in the history
# Description

## Problem\*

Resolves <!-- Link to GitHub Issue -->

## Summary\*

Bumping all the webpack dependencies to see if that helps with build
stability.

## Additional Context



## Documentation\*

Check one:
- [ ] No documentation needed.
- [ ] Documentation included in this PR.
- [ ] **[Exceptional Case]** Documentation to be submitted in a separate
PR.

# PR Checklist\*

- [ ] I have tested the changes locally.
- [ ] I have formatted the changes with [Prettier](https://prettier.io/)
and/or `cargo fmt` on default settings.
  • Loading branch information
TomAFrench authored Feb 17, 2024
1 parent 5051ec4 commit 8aa39c0
Show file tree
Hide file tree
Showing 3 changed files with 432 additions and 70 deletions.
9 changes: 5 additions & 4 deletions compiler/wasm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@
"assert": "^2.1.0",
"browserify-fs": "^1.0.0",
"chai": "^4.3.10",
"copy-webpack-plugin": "^11.0.0",
"copy-webpack-plugin": "^12.0.2",
"eslint": "^8.56.0",
"eslint-plugin-prettier": "^5.0.0",
"html-webpack-plugin": "^5.5.4",
"html-webpack-plugin": "^5.6.0",
"memfs": "^4.6.0",
"mocha": "^10.2.0",
"mocha-each": "^2.0.1",
Expand All @@ -78,8 +78,9 @@
"typescript": "~5.2.2",
"unzipit": "^1.4.3",
"url": "^0.11.3",
"webpack": "^5.49.0",
"webpack-cli": "^4.7.2"
"webpack": "^5.90.1",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^5.0.0"
},
"dependencies": {
"@noir-lang/types": "workspace:*",
Expand Down
10 changes: 6 additions & 4 deletions compiler/wasm/webpack.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { resolve, join } from 'path';
import webpack from 'webpack';
import 'webpack-dev-server';
import type { Configuration as DevServerConfiguration } from 'webpack-dev-server';
import WasmPackPlugin from '@wasm-tool/wasm-pack-plugin';
import HtmlWebpackPlugin from 'html-webpack-plugin';
import CopyWebpackPlugin from 'copy-webpack-plugin';
Expand All @@ -25,6 +25,10 @@ const config: webpack.Configuration = {
},
};

const devServerConfig: DevServerConfiguration = {
static: join(__dirname, 'dist'),
};

const webConfig: webpack.Configuration = {
name: 'web',
entry: './src/index.mts',
Expand Down Expand Up @@ -74,9 +78,7 @@ const webConfig: webpack.Configuration = {
},
],
},
devServer: {
static: join(__dirname, 'dist'),
},
devServer: devServerConfig,
resolve: {
...config.resolve,
alias: {
Expand Down
Loading

0 comments on commit 8aa39c0

Please sign in to comment.