Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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