Rollup plugin for angular with ivy enable
git clone https://github.com/aelbore/rollup-plugin-ngc.git
cd rollup-plugin-ngc
npm install
npm install --save-dev rollup-plugin-ngc
npm run ngcc
- compile all@angular/*
libraries into ivy compatiblenpm run build
- buildngcPlugin
npm run example
- build the example codenpm run serve
import { ngcPlugin } from 'rollup-plugin-ngc'
export default {
input: './src/index.ts',
plugins: [
ngcPlugin()
],
output: {
format: 'es',
file: './dist/hello-world.ts'
}
}
rootDir
- directory of input files (defaultsrc
)sourceMap
- Generates corresponding .map file (defaulttrue
)target
- Specify ECMAScript target version (defaultES2018
)