Skip to content

Commit 6de762e

Browse files
committed
build: replace / with wildcard (.) to match Windows path separator
1 parent 02a3ffd commit 6de762e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/build.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ await esbuild.build({
5555
setup(build) {
5656
// Update esbuild to support the import attributes syntax in this PR is too risky.
5757
// TODO: update esbuild and remove the hack.
58-
build.onLoad({ filter: /@vue\/create-eslint-config\/index.js$/ }, (args) => {
58+
build.onLoad({ filter: /@vue.create-eslint-config.index.js$/ }, (args) => {
5959
const text = fs.readFileSync(args.path, 'utf8')
6060
return {
6161
contents: text.replace(`with { type: 'json' }`, ''),
@@ -65,7 +65,7 @@ await esbuild.build({
6565

6666
// The renderEjsFile.js module uses file system APIs therefore after bundling it will not work.
6767
// So we need to preprocess it to remove the file system APIs.
68-
build.onLoad({ filter: /@vue\/create-eslint-config\/renderEjsFile.js$/ }, (args) => {
68+
build.onLoad({ filter: /@vue.create-eslint-config.renderEjsFile\.js$/ }, (args) => {
6969
const pkgDir = path.dirname(args.path)
7070
const templatesDir = path.resolve(pkgDir, './templates')
7171

0 commit comments

Comments
 (0)