-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
import xxx from '.' will be transpiled to the root file by mistake #7417
Comments
👌 1.3.52 |
Do you know how |
I've tested tsc and it is OK. |
I can't repro. Please see #7655 |
I'll test again using the testing system of |
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
After swc 1.3.52,the swc will transpile the path '.' by mistake.
Command:
swc src -d dist
Expect:
import x from '.'
should be relative path index in the same source dirActual:
import x from '.'
will be compiled to the package root file by mistakeNotice. I have a path alias and jest profile.
Input code
Config
Playground link
No response
Expected behavior
// dist/lib/foo.js
const _ = /#PURE/ _interop_require_default(require("./index.js"));
...
Actual behavior
// dist/lib/foo.js
const _ = /#PURE/ _interop_require_default(require("../../index.js"));
...
Version
1.3.53+
Additional context
No response
The text was updated successfully, but these errors were encountered: