mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
fix(build): full bundle transform error (#3504)
- Prevent transformer to transform @element-plus/icons
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user