Closed sapphi-red closed 7 months ago
dynamic-import-vars
This PR contains:
Are tests included?
Breaking Changes?
If yes, then include "BREAKING CHANGES:" in the first commit message body, followed by a description of what is breaking.
List any relevant issue numbers:
refs https://github.com/vitejs/vite/issues/11824
dynamicImportToGlob(parse('import(./${foo}/(foo).js)')) returned ./*/(foo).js. But because ( has a meaning in glob syntax, it meant a different thing. This PR add a escape process to handle special characters like these.
dynamicImportToGlob(parse('import(
)'))
./*/(foo).js
(
Rollup Plugin Name:
dynamic-import-vars
This PR contains:
Are tests included?
Breaking Changes?
If yes, then include "BREAKING CHANGES:" in the first commit message body, followed by a description of what is breaking.
List any relevant issue numbers:
refs https://github.com/vitejs/vite/issues/11824
Description
dynamicImportToGlob(parse('import(
./${foo}/(foo).js)'))
returned./*/(foo).js
. But because(
has a meaning in glob syntax, it meant a different thing. This PR add a escape process to handle special characters like these.