1.0.9 • Published 3 years ago
@build-script/typescript-transformer-append-js-extension v1.0.9
What is this
This is a ttypescript transformer:
- append
.jsafter every top-levelimports (dynamic ones currently not support)
Usage
- Install
typescript,ttypescript, and this transformernpm install --save-dev typescript ttypescript @build-script/typescript-transformer-dual-package - Add the transformer to your
tsconfig.json:{ "compilerOptions": { // ... other options "plugins": [ { "transform": "@build-script/typescript-transformer-append-js-extension" } ] } } - Compile with
ttsc, instead oftsc(package tools likewebpackalso support ttypescript, please refer to their docs)npm install ttypescript ttsc -p path/to/tsconfig.json