From 8827fa7d86d05b36489a34838d614c30e4941c76 Mon Sep 17 00:00:00 2001 From: btea <2356281422@qq.com> Date: Fri, 18 Apr 2025 07:54:33 +0800 Subject: [PATCH] refactor: rolldown plugin use filter property --- rolldown.config.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/rolldown.config.ts b/rolldown.config.ts index bdb523e4f..23a57c25f 100644 --- a/rolldown.config.ts +++ b/rolldown.config.ts @@ -203,8 +203,11 @@ export default defineConfig({ { name: '@vue/create-eslint-config fix', - async transform(code, id) { - if (/@vue.create-eslint-config.renderEjsFile\.js$/.test(id)) { + transform: { + filter: { + id: /@vue.create-eslint-config.renderEjsFile\.js$/, + }, + handler(code, id) { const pkgDir = path.dirname(id) const templatesDir = path.resolve(pkgDir, './templates') @@ -223,7 +226,7 @@ export default defineConfig({ return ejs.render(templates[filePath], data, {}) } ` - } + }, }, }, ], pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy