Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e395951

Browse filesBrowse files
authored
refactor: rolldown plugin use filter property (#737)
1 parent 1df4a04 commit e395951
Copy full SHA for e395951

File tree

1 file changed

+6
-3
lines changed
Filter options

1 file changed

+6
-3
lines changed

‎rolldown.config.ts

Copy file name to clipboardExpand all lines: rolldown.config.ts
+6-3Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,11 @@ export default defineConfig({
203203

204204
{
205205
name: '@vue/create-eslint-config fix',
206-
async transform(code, id) {
207-
if (/@vue.create-eslint-config.renderEjsFile\.js$/.test(id)) {
206+
transform: {
207+
filter: {
208+
id: /@vue.create-eslint-config.renderEjsFile\.js$/,
209+
},
210+
handler(code, id) {
208211
const pkgDir = path.dirname(id)
209212
const templatesDir = path.resolve(pkgDir, './templates')
210213

@@ -223,7 +226,7 @@ export default defineConfig({
223226
return ejs.render(templates[filePath], data, {})
224227
}
225228
`
226-
}
229+
},
227230
},
228231
},
229232
],

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.