https://github.com/conduitry/rollup-plugin-cheap-ts
A small, hacky Rollup plugin for TypeScript // Mirror of https://git.chor.date/Conduitry/rollup-plugin-cheap-ts
https://github.com/conduitry/rollup-plugin-cheap-ts
Last synced: 10 months ago
JSON representation
A small, hacky Rollup plugin for TypeScript // Mirror of https://git.chor.date/Conduitry/rollup-plugin-cheap-ts
- Host: GitHub
- URL: https://github.com/conduitry/rollup-plugin-cheap-ts
- Owner: Conduitry
- License: mit
- Created: 2018-11-10T17:18:15.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-05-31T23:15:15.000Z (about 6 years ago)
- Last Synced: 2025-04-14T00:34:55.184Z (about 1 year ago)
- Language: JavaScript
- Homepage: https://conduitry.dev/cheap-ts
- Size: 20.5 KB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# 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`:
```javascript
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](LICENSE)