-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
Subpaths imports syntax not working #201
Comments
@wessberg is it possible to support |
@quebits as a temporary workaround patching dist/cjs/index.cjs and/or dist/esm/index.js to use 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, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: