Dedupe CodeMirror dependencies

This commit is contained in:
2026-07-09 18:43:09 +09:00
parent 0e2a7b35d2
commit e4a9f80617
6 changed files with 41 additions and 9 deletions
+7
View File
@@ -4,6 +4,13 @@ export default defineConfig({
output: 'static',
vite: {
resolve: {
dedupe: [
'@codemirror/language',
'@codemirror/state',
'@codemirror/view',
'@lezer/highlight',
'@lezer/lr',
],
preserveSymlinks: true,
},
},
+7 -2
View File
@@ -26,9 +26,14 @@
}
},
"../../packages/decodal-codemirror": {
"version": "0.1.2",
"version": "0.1.3",
"license": "MIT OR Apache-2.0",
"dependencies": {
"devDependencies": {
"@codemirror/language": "^6.12.4",
"@lezer/highlight": "^1.2.3",
"@lezer/lr": "^1.4.10"
},
"peerDependencies": {
"@codemirror/language": "^6.12.4",
"@lezer/highlight": "^1.2.3",
"@lezer/lr": "^1.4.10"
+1 -1
View File
@@ -52,7 +52,7 @@ Production = Server & {
<span>CodeMirror package</span>
<strong>npmjs.com/package/decodal-codemirror</strong>
</a>
<a href="https://jsr.io/@hare/decodal-codemirror@0.1.2">
<a href="https://jsr.io/@hare/decodal-codemirror@0.1.3">
<span>CodeMirror on JSR</span>
<strong>jsr.io/@hare/decodal-codemirror</strong>
</a>