fix: environments.importMetaDirnameAndFilename not work
#12708
Merged
environments.importMetaDirnameAndFilename not work
#12708