Skip to content

Commit

Permalink
fix: escape characters in dynamic import (fix vitejs#11824)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan committed Jan 28, 2023
1 parent 128f09e commit d9098c6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion playground/glob-import/escape/(parenthesis)/glob.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const relative = import.meta.glob('./**/*.js', { eager: true })
const relative = import.meta.glob(`../(parenthesis)/**/*.js`, { eager: true })
const alias = import.meta.glob('@escape_(parenthesis)_mod/**/*.js', {
eager: true,
})
Expand Down
2 changes: 1 addition & 1 deletion playground/glob-import/escape/[brackets]/glob.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const relative = import.meta.glob('./**/*.js', { eager: true })
const relative = import.meta.glob(`../[brackets]/**/*.js`, { eager: true })
const alias = import.meta.glob('@escape_[brackets]_mod/**/*.js', {
eager: true,
})
Expand Down
2 changes: 1 addition & 1 deletion playground/glob-import/escape/{curlies}/glob.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
const relative = import.meta.glob('./**/*.js', { eager: true })
const relative = import.meta.glob(`../{curlies}/**/*.js`, { eager: true })
const alias = import.meta.glob('@escape_{curlies}_mod/**/*.js', { eager: true })
export { relative, alias }

0 comments on commit d9098c6

Please sign in to comment.