Skip to content

Commit

Permalink
fixed compilation after clean
Browse files Browse the repository at this point in the history
  • Loading branch information
Thunkar committed Jan 9, 2024
1 parent 002ae8a commit c15d48a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion compiler/wasm/tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "./tsconfig.json",
"extends": "./tsconfig.webpack.json",
"compilerOptions": {
"module": "ESNext",
},
Expand Down
3 changes: 0 additions & 3 deletions compiler/wasm/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,5 @@
"module": "CommonJS",
"moduleResolution": "Node",
"allowJs": true,
"paths": {
"*": ["./dist/types/*"]
}
}
}
7 changes: 7 additions & 0 deletions compiler/wasm/tsconfig.webpack.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "./tsconfig.json",
"exclude": [
"./test/**/*",
"node_modules"
]
}
5 changes: 4 additions & 1 deletion compiler/wasm/webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,10 @@ const nodeConfig: webpack.Configuration = {
rules: [
{
test: /.c?ts$/,
use: 'ts-loader',
loader: 'ts-loader',
options: {
configFile: 'tsconfig.webpack.json',
},
exclude: /node_modules/,
},
{
Expand Down

0 comments on commit c15d48a

Please sign in to comment.