Skip to content

Commit fb194b1

Browse files
authored
chore: update vscode extension build script (#696)
1 parent 7c0c112 commit fb194b1

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

packages/vscode/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"preinstall": "[ -f icon.png ] || curl https://assets.rspack.rs/rstest/rspress-logo-512x512.png --output icon.png",
5454
"build": "rslib build",
5555
"lint": "biome check . --diagnostic-level=warn",
56-
"build:local": "SOURCEMAP=true rslib build",
56+
"build:local": "cross-env SOURCEMAP=true rslib build",
5757
"test:e2e": "cross-env FORCE_COLOR=1 tsc -p tsconfig.test.json && cross-env FORCE_COLOR=1 node ./tests-dist/runTest.js",
5858
"test:unit": "rstest",
5959
"test": "npm run test:unit && npm run test:e2e",

packages/vscode/rslib.config.ts renamed to packages/vscode/rslib.config.mts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,9 @@ export default defineConfig({
4848
},
4949
},
5050
],
51+
tools: {
52+
rspack: {
53+
ignoreWarnings: [/Module not found/],
54+
},
55+
},
5156
});

packages/vscode/tsconfig.test.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
},
1414
"inlcude": ["./tests/suite", "./tests/runTests.ts"],
1515
"exclude": [
16-
"./rslib.config.ts",
16+
"./rslib.config.mts",
1717
"./rstest.config.ts",
1818
"./src",
1919
"./sample",

0 commit comments

Comments
 (0)