Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aelbore/rollup-plugin-ngc
Rollup plugin for Angular with ivy enable
https://github.com/aelbore/rollup-plugin-ngc
angular compiler ivy rollup typescript
Last synced: 3 months ago
JSON representation
Rollup plugin for Angular with ivy enable
- Host: GitHub
- URL: https://github.com/aelbore/rollup-plugin-ngc
- Owner: aelbore
- Created: 2020-06-15T02:00:34.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T09:00:46.000Z (about 2 years ago)
- Last Synced: 2024-10-10T20:47:12.152Z (4 months ago)
- Topics: angular, compiler, ivy, rollup, typescript
- Language: TypeScript
- Homepage:
- Size: 234 KB
- Stars: 18
- Watchers: 2
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rollup-plugin-ngc
Rollup plugin for angular with ivy enableGetting Started
------------
```
git clone https://github.com/aelbore/rollup-plugin-ngc.git
cd rollup-plugin-ngc
npm install
```Installation
------------
```
npm install --save-dev rollup-plugin-ngc
```Example
------------
* `npm run ngcc` - compile all `@angular/*` libraries into ivy compatible
* `npm run build` - build `ngcPlugin`
* `npm run example` - build the example code
* `npm run serve`Usage
------------
```javascript
import { ngcPlugin } from 'rollup-plugin-ngc'export default {
input: './src/index.ts',
plugins: [
ngcPlugin()
],
output: {
format: 'es',
file: './dist/hello-world.ts'
}
}
```### Options
* `rootDir` - directory of input files (default `src`)
* `sourceMap` - Generates corresponding .map file (default `true`)
* `target` - Specify ECMAScript target version (default `ES2018`)