-
Notifications
You must be signed in to change notification settings - Fork 302
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
In my tsconfig.json
I use the paths
option:
"compilerOptions": {
[...]
"paths": {
"@*": ["./src/*"]
},
}
Which allows me to import files as such:
import validateToken from "@auth/jwt"; // => <root>/src/auth/jwt.ts
However ncc's module resolution is incompatible with this feature, giving the following error:
ncc: Module directory "<dir>" attempted to require "@auth/jwt" but could not be resolved, assuming external.
Something like tsconfig-paths-webpack-plugin
could be used to support this configuration.
I could submit a PR for this if there are no objections.
macklinu, seawatts and zhaoguangqiang
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working