1.1.0 • Published 2 years ago

ts-import-transformer v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

ts-import-transformer

Transform import and export paths to work on client and server environments.

Transforms

  • User-configured path replacements
  • Fix baseUrl relative paths
  • Add .js extension

Install

npm install --save-dev typescript ttypescript ts-import-transformer

Config

In this example, we enable the plugin and configure a path replacement for the superstruct library within our tsconfig.json:

{
  "compilerOptions": {
    "plugins": [
      {
        "transform": "ts-import-transformer",
        "superstruct": "./assets/superstruct/index"
      }
    ]
  }
}

Compile

npx ttsc -p tsconfig.json
1.1.0

2 years ago

1.0.0

2 years ago

0.3.0

2 years ago

0.2.0

2 years ago

0.5.0

2 years ago

0.4.1

2 years ago

0.4.0

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago