We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Following pull request #44
I have a typescript config as follows:
{ "compilerOptions": { "outDir": "./dist", "baseUrl": "./", "paths": { "@*": ["./src/*"], "@router": ["./src/controllers/index.ts"] } } }
And I do an import like this: Important: the router folder does not exist
router
import { Controller } from '@controllers/index'; import { Router } from '@router'; new Controller(); new Router();
After using tsc-alias, the result should be the following:
tsc-alias
"use strict"; exports.__esModule = true; var index_1 = require("./controllers/index"); var _router_1 = require("./controllers/index.js"); new index_1.Controller(); new _router_1.Router();
"use strict"; exports.__esModule = true; var index_1 = require("./controllers/index"); var _router_1 = require("./router"); new index_1.Controller(); new _router_1.Router();
Sort aliases in descending order according to their length
The text was updated successfully, but these errors were encountered:
770a330
No branches or pull requests
Following pull request #44
I have a typescript config as follows:
And I do an import like this:
Important: the
router
folder does not existExpected Result
After using
tsc-alias
, the result should be the following:Current Result
Proposed solution
Sort aliases in descending order according to their length
The text was updated successfully, but these errors were encountered: