Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

README

        

# rollup-plugin-ngc
Rollup plugin for angular with ivy enable

Getting 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`)