Open kaiyoma opened 3 months ago
Yeah, Rush (and actually all of the rushstack projects) currently use the CommonJS module format. Moving to ESM would be a pretty major breaking change, although it may be time to do that. This is something that we'd do with the release of Rush v6, along with other breaking changes and removal of deprecated APIs.
Yeah, Rush (and actually all of the rushstack projects) currently use the CommonJS module format. Moving to ESM would be a pretty major breaking change, although it may be time to do that. This is something that we'd do with the release of Rush v6, along with other breaking changes and removal of deprecated APIs.
When is Rush v6 expected to be released?
Summary
I'm working on a custom cloud storage cache plugin, as per the docs here:
https://rushjs.io/pages/maintainer/build_cache/#enabling-cloud-storage https://rushjs.io/pages/maintainer/using_rush_plugins/ https://rushjs.io/pages/extensibility/creating_plugins/
However, when I try to use the plugin in Rush, I get an error message about ES modules not being supported.
Repro steps
Write a plugin in ESM and try to use it.
Expected result:
It works.
Actual result:
Apparently the Rush architecture is not using ES modules, and tries to
require
the plugin:Details
Standard questions
Please answer these questions to help us investigate your issue more quickly:
@microsoft/rush
globally installed version?rushVersion
from rush.json?useWorkspaces
from rush.json?node -v
)?