1.0.9 • Published 2 years ago

@build-script/typescript-transformer-append-js-extension v1.0.9

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

What is this

This is a ttypescript transformer:

  • append .js after every top-level imports (dynamic ones currently not support)

Usage

  1. Install typescript, ttypescript, and this transformer
    npm install --save-dev typescript ttypescript @build-script/typescript-transformer-dual-package
  2. Add the transformer to your tsconfig.json:
    {
    	"compilerOptions": {
    		// ... other options
    		"plugins": [
    			{
    				"transform": "@build-script/typescript-transformer-append-js-extension"
    			}
    		]
    	}
    }
  3. Compile with ttsc, instead of tsc (package tools like webpack also support ttypescript, please refer to their docs)
    npm install ttypescript
    ttsc -p path/to/tsconfig.json
1.0.9

2 years ago

1.0.10

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago