We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1df4a04 commit e395951Copy full SHA for e395951
rolldown.config.ts
@@ -203,8 +203,11 @@ export default defineConfig({
203
204
{
205
name: '@vue/create-eslint-config fix',
206
- async transform(code, id) {
207
- if (/@vue.create-eslint-config.renderEjsFile\.js$/.test(id)) {
+ transform: {
+ filter: {
208
+ id: /@vue.create-eslint-config.renderEjsFile\.js$/,
209
+ },
210
+ handler(code, id) {
211
const pkgDir = path.dirname(id)
212
const templatesDir = path.resolve(pkgDir, './templates')
213
@@ -223,7 +226,7 @@ export default defineConfig({
223
226
return ejs.render(templates[filePath], data, {})
224
227
}
225
228
`
- }
229
230
},
231
232
],
0 commit comments