Skip to content

Commit 22795e1

Browse files
committed
feat: 更新 package-lock.json 版本并添加 @xterm/addon-fit 和 @xterm/xterm 依赖,启用源映射以支持调试
1 parent c27c26f commit 22795e1

File tree

3 files changed

+28
-5
lines changed

3 files changed

+28
-5
lines changed

.vscodeignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ vsc-extension-quickstart.md
1010
**/*.map
1111
**/*.ts
1212
**/.vscode-test.*
13+
# Exclude all node_modules except marked
1314
**/node_modules/**
15+
!node_modules/marked/**
1416
**/.git/**
1517
**/package-lock.json
1618
**/.DS_Store

package-lock.json

Lines changed: 22 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/vue/vite.config.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export default defineConfig({
1616
}),
1717
],
1818
build: {
19+
sourcemap: true, // 启用源映射以支持调试
1920
rollupOptions: {
2021
input: {
2122
about: resolve(__dirname, 'about/index.html'),
@@ -25,16 +26,17 @@ export default defineConfig({
2526
},
2627
output: {
2728
manualChunks: undefined, // 避免生成太多chunk
29+
sourcemapExcludeSources: false, // 在源映射中包含源代码
2830
}
2931
},
3032
outDir: '../../out',
3133
assetsDir: 'assets',
3234
emptyOutDir: true,
3335
chunkSizeWarningLimit: 1000,
34-
minify: 'terser', // 使用terser进行更好的压缩
36+
minify: false, // 开发时不压缩
3537
terserOptions: {
3638
compress: {
37-
drop_console: true, // 移除console.log
39+
drop_console: false, // 不移除console.log
3840
drop_debugger: true, // 移除debugger
3941
},
4042
},

0 commit comments

Comments
 (0)