npm install shark-angular2 --save
or use SharkModule to import all of the modules at once:
import { SharkModule } from 'shark-angular2';
...
@NgModule({
...
imports: [SharkModule, ... ],
...
})
You have to use CommonJS rollup plugin, which you should be using anyway due to RxJS. If for some reason not, install it:
npm install rollup-plugin-commonjs --save --dev
Then you have to import the CommonJS plugin, include it in the plugins array and add ng2-bootstrap to the list of modules:
...
import commonjs from 'rollup-plugin-commonjs';
...
//paths are relative to the execution path
export default {
...
plugins: [
...
commonjs({
include: [
'node_modules/rxjs/**',
'node_modules/shark-angular2/**',
'node_modules/shark-ui/**'//because shark-angular2 depends on shark-ui
]
}),
...
]
}
at last, Run compilation the standard way
e.g.
ngc -p tsconfig-aot.json
rollup -c rollup-config.js