typescript-transform-paths
typescript-transform-paths copied to clipboard
Transforms module resolution paths using TypeScript path mapping and/or custom paths
The import assertion thing was added in TS by https://github.com/microsoft/TypeScript/commit/ec114b8931bf1ad15fd017ecbacf09e099338820 https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-5.html#import-assertions Currently, the import assertion is being lost (since `node.assertClause` is not taken into the consideration by `typescript-transform-paths`) and so...
I have this settings in my tsconfig: ```json "paths": { "@util": ["util/index.js"] } ``` But when I `import { } from "@util";` It emits this code: `import { } from...
https://github.com/LeDDGroup/typescript-transform-paths/blob/83349e4e1b84efaa28ee3efbc09c8e15369f4836/types/index.d.ts#L36 I think this should `ts.CustomTransformerFactory`
I don't use paths in my project, just baseUrl like so: ``` { "extends": "../../tsconfig.packages.json", "compilerOptions": { "rootDir": "src", "outDir": "dist", "baseUrl": "./src" } } ``` I have to add...
For various reasons, I had a TS path that reached deeply into an npm package: ``` paths: { "@foobar/*": ["./node_modules/eslint/lib/rules/*"] } ``` I'd have an import like this: ```js import...
Bumps [trim-off-newlines](https://github.com/stevemao/trim-off-newlines) from 1.0.1 to 1.0.3. Commits c3b28d3 1.0.3 6226c95 Merge pull request #4 from Trott/fix-it-again c77691d fix: remediate ReDOS further 76ca93c chore: pin mocha to version that works with...
Hello, I use nx which supports to pass transformer to tsc compiler, but it requires plugin is a Transformer Plugin. This is error `typescript-transform-paths/register is not a Transformer Plugin. It...
**Background** I'm building a React Component Library, and some components are nested, eg. `` & ``, but it also has a root element, named ``. **Issue** If you take a...
I am trying this out with my `esm` module with following configuration #### **`tsconfig.tsnode.json`** ```json { "include": ["src/**/*", "tests/**/*"], "exclude": ["node_modules/*", "coverage/*"], "ts-node": { "transpileOnly": true, "require": ["typescript-transform-paths/register"] }, "compilerOptions":...