Releases: exuanbo/module-from-string
Releases · exuanbo/module-from-string
v3.3.1
v3.3.0
v3.2.1
v3.2.0
v3.1.4
Bug Fixes
import.meta.url
is incorrectly set to path instead of URL string inimportFromString
.
Chores
- Bump dependencies. Note that esbuild 0.14.4 adjusted its handling of
default
exports and the__esModule
marker to improve compatibility with Webpack and Node, which may cause some changes when transforming the code from ES modules to CommonJS modules.
v3.1.3
v3.1.2
v3.1.1
Fixes
- In the previous versions when using
import
statement and dynamicimport()
expression, the specifier would not be resolved correctly if used on Windows and the path starts with posix path separator.
Chores
- Bump dependency
esbuild
from 0.12.22 to 0.12.24
v3.1.0
- Add new optional option
dirname
to specify the directory path for resolving relative pathrequire
orimport
. - Add support for dynamic
import()
expression. - Fix problem when using
import
statement of ES modules.
v3.1.0-0
- Fix support using in ES module scope.
Execute node with--experimental-vm-modules
command flag to enable this. - Add new optional option
dirname
to specify directory path when resolving relative path import.