fix(build): revert entities to 4.5 to avoid runtime resolution errors

close #11603
This commit is contained in:
Evan You 2024-08-15 10:16:32 +08:00
parent 5861229475
commit e9e08155bf
No known key found for this signature in database
GPG Key ID: 00E9AB7A6704CE0A
6 changed files with 10 additions and 12 deletions

View File

@ -58,5 +58,9 @@
// pinned
// only used in example for e2e tests
'marked',
// pinned, 5.0+ has exports issues
// https://github.com/vuejs/core/issues/11603
'entities',
],
}

View 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:"
},

View 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,

View File

@ -36,7 +36,7 @@ import {
EntityDecoder,
fromCodePoint,
htmlDecodeTree,
} from 'entities/dist/decode.js'
} from 'entities/lib/decode.js'
export enum ParseMode {
BASE,

View File

@ -256,8 +256,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
@ -1773,10 +1773,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'}
@ -4700,8 +4696,6 @@ snapshots:
entities@4.5.0: {}
entities@5.0.0: {}
env-paths@2.2.1: {}
environment@1.1.0: {}

View File

@ -258,7 +258,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) {