This package has been deprecated

Author message:

use [@build-script/typescript-transformer-dual-package]

@build-script/typescript-transformer-append-js-extension
TypeScript icon, indicating that this package has built-in type declarations

1.0.9 • Public • Published

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

Package Sidebar

Install

npm i @build-script/typescript-transformer-append-js-extension

Weekly Downloads

5

Version

1.0.9

License

MIT

Unpacked Size

25.7 kB

Total Files

29

Last publish

Collaborators

  • gongt