You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@quebits as a temporary workaround patching dist/cjs/index.cjs and/or dist/esm/index.js to use Bundler rather than NodeJs fixes this for me (NodeNext works as well, but it breaks most published modules and doesn't work with dual/mixed CommonJS/ESM packages):
diff --git a/dist/cjs/index.cjs b/dist/cjs/index.cjs--- a/dist/cjs/index.cjs+++ b/dist/cjs/index.cjs@@ -746,7 +746,7 @@ function getForcedCompilerOptions(options) {
// Node resolution is required when 'importHelpers' are true
- moduleResolution: options.pluginOptions.typescript.ModuleResolutionKind.NodeJs,+ moduleResolution: options.pluginOptions.typescript.ModuleResolutionKind.Bundler,diff --git a/dist/esm/index.js b/dist/esm/index.js--- a/dist/esm/index.js+++ b/dist/esm/index.js@@ -744,7 +744,7 @@ function getForcedCompilerOptions(options) {
// Node resolution is required when 'importHelpers' are true
- moduleResolution: options.pluginOptions.typescript.ModuleResolutionKind.NodeJs,+ moduleResolution: options.pluginOptions.typescript.ModuleResolutionKind.Bundler,
tsc
(if applicable): fine works in tscReproduction
I create reproducable repo. Reproducable problem that step,
npm install
npm run rollup:prod
Expected Behavior
Recently, Node.js and TypeScript support subpaths imports. This feature can replace TypeScript Re-Map paths and tsconfig-paths.
But rollup-plugin-ts cannot compile this syntax like that,
I think that rollup-plugin-ts have to do compile this syntax.
Actual Behavior
rollup-plugin-ts cannot resolve this syntax. rollup-plugin-ts display error message like that,
The text was updated successfully, but these errors were encountered: