]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(build): revert entities to 4.5 to avoid runtime resolution errors
authorEvan You <evan@vuejs.org>
Thu, 15 Aug 2024 02:16:32 +0000 (10:16 +0800)
committerEvan You <evan@vuejs.org>
Thu, 15 Aug 2024 07:33:05 +0000 (15:33 +0800)
close #11603

.github/renovate.json5
packages/compiler-core/package.json
packages/compiler-core/src/parser.ts
packages/compiler-core/src/tokenizer.ts
pnpm-lock.yaml
rollup.config.js

index 9c04587027df8a0a8ed8859c1da9da55dc68f8e8..e9724bb5aa68e500e5a9dbb25d5a3cf840bbf93d 100644 (file)
@@ -54,5 +54,9 @@
     // pinned
     // https://github.com/vuejs/core/commit/a012e39b373f1b6918e5c89856e8f902e1bfa14d
     '@rollup/plugin-replace',
+
+    // pinned, 5.0+ has exports issues
+    // https://github.com/vuejs/core/issues/11603
+    'entities',
   ],
 }
index 611d2df00411cd6ced9d0251646fcaeeed3b8b25..53223367abba2dce997e17a73ef96c8bc571fe02 100644 (file)
@@ -48,7 +48,7 @@
   "dependencies": {
     "@babel/parser": "catalog:",
     "@vue/shared": "workspace:*",
-    "entities": "^5.0.0",
+    "entities": "^4.5.0",
     "estree-walker": "catalog:",
     "source-map-js": "catalog:"
   },
index 55487e12b70222924095fd9f9c1e47089e10546a..cac943dd63dba34f6b1b31a53ce358cdbd398884 100644 (file)
@@ -44,7 +44,7 @@ import {
   isSimpleIdentifier,
   isStaticArgOf,
 } from './utils'
-import { decodeHTML } from 'entities/dist/decode.js'
+import { decodeHTML } from 'entities/lib/decode.js'
 import {
   type ParserOptions as BabelOptions,
   parse,
index 72f548fa28c1f989f61133cba93008f5c8122cef..561a84b5f12ba33bc0da8fec21c5e2e0dfa69711 100644 (file)
@@ -36,7 +36,7 @@ import {
   EntityDecoder,
   fromCodePoint,
   htmlDecodeTree,
-} from 'entities/dist/decode.js'
+} from 'entities/lib/decode.js'
 
 export enum ParseMode {
   BASE,
index d12dc453c690339249b1a3d889ed2304303616a9..5bd49010454cb0080875a46747b014102a20afe6 100644 (file)
@@ -183,8 +183,8 @@ importers:
         specifier: workspace:*
         version: link:../shared
       entities:
-        specifier: ^5.0.0
-        version: 5.0.0
+        specifier: ^4.5.0
+        version: 4.5.0
       estree-walker:
         specifier: 'catalog:'
         version: 2.0.2
@@ -1903,10 +1903,6 @@ packages:
     resolution: {integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==}
     engines: {node: '>=0.12'}
 
-  entities@5.0.0:
-    resolution: {integrity: sha512-BeJFvFRJddxobhvEdm5GqHzRV/X+ACeuw0/BuuxsCh1EUZcAIz8+kYmBp/LrQuloy6K1f3a0M7+IhmZ7QnkISA==}
-    engines: {node: '>=0.12'}
-
   env-paths@2.2.1:
     resolution: {integrity: sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==}
     engines: {node: '>=6'}
@@ -5021,8 +5017,6 @@ snapshots:
 
   entities@4.5.0: {}
 
-  entities@5.0.0: {}
-
   env-paths@2.2.1: {}
 
   environment@1.1.0: {}
index a7afed7ec9ba431798e23f76686c13fa2f060688..ff0da348826a53c71f51a261c5aa08670da0052f 100644 (file)
@@ -253,7 +253,7 @@ function createConfig(format, output, plugins = []) {
       'source-map-js',
       '@babel/parser',
       'estree-walker',
-      'entities/dist/decode.js',
+      'entities/lib/decode.js',
     ]
 
     if (isGlobalBuild || isBrowserESMBuild || isCompatPackage) {