3.3.0 (2022-09-16)
- Add option
filenamefor 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
useCurrentGlobalto pass all the available variable from the currentglobal(orglobalThis) into the context. - Add curried functions
createRequireFromString,createImportFromStringandcreateImportFromStringSync.
3.1.4 (2021-12-23)
import.meta.urlis incorrectly set to path instead of URL string inimportFromString.
- Bump dependencies. Note that esbuild 0.14.4 adjusted its handling of
defaultexports and the__esModulemarker 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:\foocould 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
importstatement and dynamicimport()expression, the specifier would not be resolved correctly if used on Windows and the path starts with posix path separator.
- Bump dependency
esbuildfrom 0.12.22 to 0.12.24
3.1.0 (2021-08-21)
- Fix problem when using
importstatement of ES modules.
- Add new optional option
dirnameto specify the directory path for resolving relative pathrequireorimport. - Add support for dynamic import() expression.