@vue/compiler-core 3.4.0-alpha.2 → 3.4.0-alpha.3

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.
@@ -1760,6 +1760,8 @@ const tokenizer = new Tokenizer(stack, {
1760
1760
  }
1761
1761
  },
1762
1762
  ondirarg(start, end) {
1763
+ if (start === end)
1764
+ return;
1763
1765
  const arg = getSlice(start, end);
1764
1766
  if (inVPre) {
1765
1767
  currentProp.name += arg;
@@ -1756,6 +1756,8 @@ const tokenizer = new Tokenizer(stack, {
1756
1756
  }
1757
1757
  },
1758
1758
  ondirarg(start, end) {
1759
+ if (start === end)
1760
+ return;
1759
1761
  const arg = getSlice(start, end);
1760
1762
  if (inVPre) {
1761
1763
  currentProp.name += arg;
@@ -1157,7 +1157,7 @@ function defaultOnWarn(msg) {
1157
1157
  !!(process.env.NODE_ENV !== "production") && console.warn(`[Vue warn] ${msg.message}`);
1158
1158
  }
1159
1159
  function createCompilerError(code, loc, messages, additionalMessage) {
1160
- const msg = !!(process.env.NODE_ENV !== "production") || false ? (messages || errorMessages)[code] + (additionalMessage || ``) : code;
1160
+ const msg = !!(process.env.NODE_ENV !== "production") || false ? (messages || errorMessages)[code] + (additionalMessage || ``) : `https://vuejs.org/errors/#compiler-${code}`;
1161
1161
  const error = new SyntaxError(String(msg));
1162
1162
  error.code = code;
1163
1163
  error.loc = loc;
@@ -1680,6 +1680,8 @@ const tokenizer = new Tokenizer(stack, {
1680
1680
  }
1681
1681
  },
1682
1682
  ondirarg(start, end) {
1683
+ if (start === end)
1684
+ return;
1683
1685
  const arg = getSlice(start, end);
1684
1686
  if (inVPre) {
1685
1687
  currentProp.name += arg;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue/compiler-core",
3
- "version": "3.4.0-alpha.2",
3
+ "version": "3.4.0-alpha.3",
4
4
  "description": "@vue/compiler-core",
5
5
  "main": "index.js",
6
6
  "module": "dist/compiler-core.esm-bundler.js",
@@ -32,13 +32,13 @@
32
32
  },
33
33
  "homepage": "https://github.com/vuejs/core/tree/main/packages/compiler-core#readme",
34
34
  "dependencies": {
35
- "@babel/parser": "^7.23.3",
35
+ "@babel/parser": "^7.23.4",
36
36
  "entities": "^4.5.0",
37
37
  "estree-walker": "^2.0.2",
38
38
  "source-map-js": "^1.0.2",
39
- "@vue/shared": "3.4.0-alpha.2"
39
+ "@vue/shared": "3.4.0-alpha.3"
40
40
  },
41
41
  "devDependencies": {
42
- "@babel/types": "^7.23.3"
42
+ "@babel/types": "^7.23.4"
43
43
  }
44
44
  }