diff --git a/scripts/build.mjs b/scripts/build.mjs index d200e2d6..15e23a44 100644 --- a/scripts/build.mjs +++ b/scripts/build.mjs @@ -54,7 +54,6 @@ await esbuild.build({ { name: '@vue/create-eslint-config fix', setup(build) { - // The renderEjsFile.js module uses file system APIs therefore after bundling it will not work. // So we need to preprocess it to remove the file system APIs. build.onLoad({ filter: /@vue.create-eslint-config.renderEjsFile\.js$/ }, (args) => { diff --git a/utils/renderEslint.ts b/utils/renderEslint.ts index ee4d6ae4..34933de2 100644 --- a/utils/renderEslint.ts +++ b/utils/renderEslint.ts @@ -108,7 +108,7 @@ export function getAdditionalConfigs({ ] .map(JSON.stringify.bind(JSON)) .join(',\n ') - .replace(/"/g, "'")} // use single quotes as in the other configs + .replace(/"/g, "'" /* use single quotes as in the other configs */)} ], },` }