Skip to content

V3 doesn't rewrite imports #114

@mikearnaldi

Description

@mikearnaldi

when upgrading to v3 in https://github.com/Effect-TS/core I noticed modules are no longer replaced, we use typescript-transform-paths for our test suite and all the tests were failing for "module not found".

debugging manually shows the following:

V3:

V3-BUG

V2:

V2-OK

A quick repro can be done by cloning the repo in question using a tsconfig like:

{
  "extends": "./tsconfig.json",
  "files": [],
  "compilerOptions": {
    "target": "ES2018",
    "module": "CommonJS",
    "plugins": [{ "transform": "typescript-transform-paths" }],
    "outDir": "debug"
  },
  "include": ["scripts/jest-setup-after-env.ts"]
}

when used with v2 the import @effect-ts/system/Structural of scripts/jest-setup-after-env.ts is replaced with v3 is left untouched

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions