A small, hacky Rollup plugin for TypeScript https://conduitry.dev/cheap-ts
移至檔案
Conduitry 4293c215c6 v1.1.1 2020-05-31 19:11:03 -04:00
CHANGELOG.md v1.1.1 2020-05-31 19:11:03 -04:00
LICENSE update readme/homepage 2019-06-08 08:58:27 -04:00
README.md update readme/homepage 2019-06-08 08:58:27 -04:00
index.js avoid deprecation warning by trying this.resolve before this.resolveId 2020-05-31 19:06:19 -04:00
package.json v1.1.1 2020-05-31 19:11:03 -04:00

README.md

rollup-plugin-cheap-ts

A hacky lightweight Rollup plugin for transpiling and bundling libraries written in TypeScript.

Installation

This is not published to npm. Install from Git tags.

Usage

Include the plugin in your rollup.config.js:

import cheapTS from 'rollup-plugin-cheap-ts';

export default {
	// ...
	plugins: [
		// ...
		cheapTS(),
		// ...
	],
};

You must have a tsconfig.json in the same directory as your rollup.config.js. This must specify a "compilerOptions"."target" of at least "ES6". There are a few other options that must not be specified. (The plugin will check for these.) All extensionless imports from .ts files must refer to .ts files.

License

MIT