-
-
Notifications
You must be signed in to change notification settings - Fork 495
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(core): support ESM Forge module loading #3582
base: main
Are you sure you want to change the base?
Commits on Jun 23, 2024
-
refactor(core): try...catch dynamicImport
This ensures calling dynamicImport will rather result in rejected promise than in unhandled exception.
Configuration menu - View commit details
-
Copy full SHA for 7740716 - Browse repository at this point
Copy the full SHA 7740716View commit details -
feat(core): support ESM module packages
Replace some require() calls with dynamicImport() to support loading makers/publishers/plugins etc. that are ESM makers
Configuration menu - View commit details
-
Copy full SHA for 0f0fbc5 - Browse repository at this point
Copy the full SHA 0f0fbc5View commit details -
fix(core): limit path resolving in helper
Avoid resolving path to file url in dynamicImport to support importing modules by identifiers.
Configuration menu - View commit details
-
Copy full SHA for 205515b - Browse repository at this point
Copy the full SHA 205515bView commit details -
fix(core): re-order dynamicImportMaybe methods
Try require first, then import, to avoid .default property for CJS.
Configuration menu - View commit details
-
Copy full SHA for 1fda9c8 - Browse repository at this point
Copy the full SHA 1fda9c8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5bce35c - Browse repository at this point
Copy the full SHA 5bce35cView commit details -
refactor(core): merge import error messages
Merge error messages for imports to easier debug potential failures.
Configuration menu - View commit details
-
Copy full SHA for 595b084 - Browse repository at this point
Copy the full SHA 595b084View commit details -
Rename require-search test to import-search and improve testing the promise rejection. Co-authored-by: Erick Zhao <erick@hotmail.ca>
Configuration menu - View commit details
-
Copy full SHA for 2cf6d60 - Browse repository at this point
Copy the full SHA 2cf6d60View commit details
Commits on Jun 27, 2024
-
Configuration menu - View commit details
-
Copy full SHA for d65e18c - Browse repository at this point
Copy the full SHA d65e18cView commit details