Replace @dual-bundle/import-meta-resolve
with import-meta-resolve
#7556
Labels
status: agreed but held
is agreed on but implementation is held
Milestone
In PR #7532, we introduced the
@dual-bundle/import-meta-resolve
package to support both ESM and CJS, which is a fork ofimport-meta-resolve
that is pure ESM.When we switch to pure ESM (maybe in the next major version), we can replace
@dual-bundle/import-meta-resolve
withimport-meta-resolve
.See also the code below:
stylelint/lib/utils/resolveSilent.mjs
Lines 6 to 7 in a211d8b
Note
Node.js has provided the
import.meta.resolve()
API, and we would like to use the API instead ofimport-meta-resolve
, but it is still experimental. In addition, the--experimental-import-meta-resolve
flag is necessary to use the second argumentparent
(at the point of Node.js 21.7.1). So it may be difficult to switchimport.meta.resolve()
in the next major version.The text was updated successfully, but these errors were encountered: