3.3.0 (2022-09-16)
- Add option
filename
for better exception stack trace.
3.2.1 (2022-08-02)
- File URL was incorrectly converted to path in
import()
expression. - Error when using import statement with absolute path on Windows.
3.2.0 (2022-07-17)
- Add option
useCurrentGlobal
to pass all the available variable from the currentglobal
(orglobalThis
) into the context. - Add curried functions
createRequireFromString
,createImportFromString
andcreateImportFromStringSync
.
3.1.4 (2021-12-23)
import.meta.url
is incorrectly set to path instead of URL string inimportFromString
.
- 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.
3.1.3 (2021-11-27)
- Absolute path import on Windows such as
C:\foo
could not be resolved.
- Bump dependencies.
3.1.2 (2021-11-07)
- Bump and unpin dependencies.
3.1.1 (2021-08-28)
- 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.
- Bump dependency
esbuild
from 0.12.22 to 0.12.24
3.1.0 (2021-08-21)
- Fix problem when using
import
statement of ES modules.
- Add new optional option
dirname
to specify the directory path for resolving relative pathrequire
orimport
. - Add support for dynamic import() expression.