mirror of
https://github.com/element-plus/element-plus.git
synced 2025-02-17 11:49:41 +08:00
fix(build): full bundle transform error (#3504)
- Prevent transformer to transform @element-plus/icons
This commit is contained in:
parent
2322103059
commit
ccaddca6b4
@ -8,11 +8,11 @@ export default function entryPlugin(): Plugin {
|
||||
if (id.includes('packages')) {
|
||||
return {
|
||||
code: code.replace(
|
||||
/@element-plus\//g,
|
||||
/@element-plus\/(components|directives|utils|hooks|tokens|locale)/g,
|
||||
`${path.relative(
|
||||
path.dirname(id),
|
||||
path.resolve(__dirname, '../packages')
|
||||
)}/`
|
||||
)}/$1`
|
||||
),
|
||||
map: null,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user