@vuebro/loader-sfc 2.3.19 → 2.3.20

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.
@@ -23710,13 +23710,7 @@ const Xg = async (e) => {
23710
23710
  })), D = { jsxRuntime: "preserve", transforms: [...E] }, { ast: N, content: j = "" } = b ?? {}, { bindings: U, content: X, warnings: W } = x || g ? WP(f, A) : {};
23711
23711
  U && (w.bindingMetadata = U);
23712
23712
  const { code: V, errors: F, tips: q } = !b || g && A.inlineTemplate ? {} : l0({ ...N, filename: e, id: p, source: j, ...C });
23713
- [...m, ...F ?? [], ...d].forEach((Y) => {
23714
- co.error(Y);
23715
- }), [...W ?? [], ...l ? [l] : []].forEach((Y) => {
23716
- co.warn(Y);
23717
- }), [...q ?? []].forEach((Y) => {
23718
- co.info(Y);
23719
- });
23713
+ [...m, ...F ?? [], ...d].forEach(co.error), [...W ?? [], ...l ? [l] : []].forEach(co.warn), [...q ?? []].forEach(co.info);
23720
23714
  const [G, ee, ae] = await Promise.all([O, X ? Kg(E.size ? nd(X, D).code : X) : Promise.resolve(void 0), V ? Kg(E.size ? nd(V, D).code : V) : Promise.resolve(void 0)]), be = G.join(`
23721
23715
  `).trim();
23722
23716
  if (be) {
@@ -83,15 +83,9 @@ export default async (filename, { parseOptions, scriptOptions: { templateOptions
83
83
  ...templateOptions,
84
84
  })
85
85
  : {};
86
- [...parseErrors, ...(templateErrors ?? []), ...styleErrors].forEach((error) => {
87
- consola.error(error);
88
- });
89
- [...(scriptWarnings ?? []), ...(styleWarning ? [styleWarning] : [])].forEach((warn) => {
90
- consola.warn(warn);
91
- });
92
- [...(templateTips ?? [])].forEach((info) => {
93
- consola.info(info);
94
- });
86
+ [...parseErrors, ...(templateErrors ?? []), ...styleErrors].forEach(consola.error);
87
+ [...(scriptWarnings ?? []), ...(styleWarning ? [styleWarning] : [])].forEach(consola.warn);
88
+ [...(templateTips ?? [])].forEach(consola.info);
95
89
  const [styleResult, scriptResult, templateResult] = await Promise.all([
96
90
  style,
97
91
  content
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vuebro/loader-sfc",
3
- "version": "2.3.19",
3
+ "version": "2.3.20",
4
4
  "description": "Vue3 Single File Component (SFC) loader. Load .vue files directly from your browser without any build step.",
5
5
  "keywords": [
6
6
  "vue",
@@ -43,8 +43,8 @@
43
43
  "devDependencies": {
44
44
  "@rollup/plugin-terser": "^0.4.4",
45
45
  "@types/hash-sum": "^1.0.2",
46
- "@types/node": "^24.9.2",
47
- "@vuebro/configs": "^1.1.56",
46
+ "@types/node": "^24.10.0",
47
+ "@vuebro/configs": "^1.1.57",
48
48
  "eslint": "^9.39.0",
49
49
  "vite": "^7.1.12"
50
50
  }