@skaldapp/monaco-sfc 1.2.12 → 1.2.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/vue.worker.js +7 -4
- package/package.json +7 -7
package/dist/vue.worker.js
CHANGED
|
@@ -24134,9 +24134,11 @@ var require_scriptSetup$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
24134
24134
|
});
|
|
24135
24135
|
const toImport = usedMacros.filter(({ alias }) => !options.setupBindings.has(alias));
|
|
24136
24136
|
if (toImport.length) {
|
|
24137
|
-
yield `
|
|
24138
|
-
for (const { canonical, alias } of toImport) yield alias === canonical ? `${canonical}, ` : `${canonical}
|
|
24139
|
-
yield `}
|
|
24137
|
+
yield `const { `;
|
|
24138
|
+
for (const { canonical, alias } of toImport) yield alias === canonical ? `${canonical}, ` : `${canonical}: ${alias}, `;
|
|
24139
|
+
yield `} = `;
|
|
24140
|
+
yield (0, utils_1.asType)(`typeof import('${options.vueCompilerOptions.lib}')`, options.scriptLang);
|
|
24141
|
+
yield utils_1.endOfLine;
|
|
24140
24142
|
}
|
|
24141
24143
|
}
|
|
24142
24144
|
}
|
|
@@ -24446,6 +24448,7 @@ var require_script = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
24446
24448
|
yield* (0, template_1.generateTemplate)(options, names_1.names.src);
|
|
24447
24449
|
} else if (script && scriptRanges && scriptSetup && scriptSetupRanges) {
|
|
24448
24450
|
yield* (0, scriptSetup_1.generateScriptSetupImports)(scriptSetup, scriptSetupRanges);
|
|
24451
|
+
yield* (0, scriptSetup_1.generateMacros)(options);
|
|
24449
24452
|
let selfType;
|
|
24450
24453
|
const { exportDefault } = scriptRanges;
|
|
24451
24454
|
if (exportDefault) yield* generateScriptWithExportDefault(ctx, script, scriptRanges, exportDefault, vueCompilerOptions, selfType = names_1.names.self, exportExpression);
|
|
@@ -24462,6 +24465,7 @@ var require_script = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
24462
24465
|
}
|
|
24463
24466
|
} else if (scriptSetup && scriptSetupRanges) {
|
|
24464
24467
|
yield* (0, scriptSetup_1.generateScriptSetupImports)(scriptSetup, scriptSetupRanges);
|
|
24468
|
+
yield* (0, scriptSetup_1.generateMacros)(options);
|
|
24465
24469
|
if (scriptSetup.generic) {
|
|
24466
24470
|
yield* generateExportDeclareEqual(scriptSetup, names_1.names.export);
|
|
24467
24471
|
yield* (0, scriptSetup_1.generateGeneric)(options, ctx, scriptSetup, scriptSetupRanges, scriptSetup.generic, (0, scriptSetup_1.generateSetupFunction)(options, ctx, scriptSetup, scriptSetupRanges, (0, template_1.generateTemplate)(options)));
|
|
@@ -24479,7 +24483,6 @@ var require_script = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
24479
24483
|
}
|
|
24480
24484
|
}
|
|
24481
24485
|
yield* ctx.localTypes.generate();
|
|
24482
|
-
if (scriptSetup && scriptSetupRanges && typeof script?.src !== "object") yield* (0, scriptSetup_1.generateMacros)(options);
|
|
24483
24486
|
}
|
|
24484
24487
|
function* generateScriptWithExportDefault(ctx, script, scriptRanges, exportDefault, vueCompilerOptions, varName, exportExpression, templateGenerator) {
|
|
24485
24488
|
const { expression, isObjectLiteral } = scriptRanges.exportDefault?.options ?? exportDefault;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://www.schemastore.org/package",
|
|
3
3
|
"name": "@skaldapp/monaco-sfc",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.13",
|
|
5
5
|
"description": "A Monaco Editor language server for Vue Single File Components (SFC) providing syntax highlighting, IntelliSense, error detection, and more",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"vue",
|
|
@@ -54,9 +54,9 @@
|
|
|
54
54
|
"@remote-dom/polyfill": "^1.6.0",
|
|
55
55
|
"@volar/jsdelivr": "^2.4.28",
|
|
56
56
|
"@volar/monaco": "^2.4.28",
|
|
57
|
-
"@vue/language-core": "^3.3.
|
|
58
|
-
"@vue/language-service": "^3.3.
|
|
59
|
-
"@vue/typescript-plugin": "^3.3.
|
|
57
|
+
"@vue/language-core": "^3.3.13",
|
|
58
|
+
"@vue/language-service": "^3.3.13",
|
|
59
|
+
"@vue/typescript-plugin": "^3.3.13",
|
|
60
60
|
"monaco-editor": "0.52.2",
|
|
61
61
|
"typescript": "^6.0.3",
|
|
62
62
|
"volar-service-typescript": "^0.0.71",
|
|
@@ -65,12 +65,12 @@
|
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@rollup/plugin-commonjs": "^29.0.3",
|
|
68
|
-
"@skaldapp/configs": "^1.7.
|
|
68
|
+
"@skaldapp/configs": "^1.7.6",
|
|
69
69
|
"@types/markdown-it": "^14.2.0",
|
|
70
|
-
"@types/node": "^26.6.
|
|
70
|
+
"@types/node": "^26.6.5",
|
|
71
71
|
"eslint": "^10.12.0",
|
|
72
72
|
"jsonc-parser": "^3.3.1",
|
|
73
73
|
"path-browserify": "^1.0.1",
|
|
74
|
-
"vite": "^8.3.
|
|
74
|
+
"vite": "^8.3.4"
|
|
75
75
|
}
|
|
76
76
|
}
|