Rollup build instead of webpack
See original GitHub issueQuick summary: The package deployed to unpkg.com is a webpack build. Would it be possible to add a umd module build using rollup so that the package is similar to https://unpkg.com/@angular/core@2.4.8/bundles/ https://github.com/angular/angular/tree/master/packages/core?
I’m submitting a … (check one with “x”)
[*] feature request
Current behavior Library currently built with webpack fails when included in a rollup script.
'NgxDatatableModule' is not exported by node_modules/@swimlane/ngx-datatable/release/index.js
https://github.com/rollup/rollup/wiki/Troubleshooting#name-is-not-exported-by-module
build/app/app.module.js (16:9)
Expected behavior Include datatables in a rollup application
Reproduction of the problem Include ngx-datatable in a rollup build
What is the motivation / use case for changing the behavior? Webpack modules don’t work well with other applications and require large monolithic downloads which fail on slow servers.
Please tell us about your environment: Mac & Linux NPM
- Table version: 6.3.0
-
Angular version: 2.4.9 2.4.
-
Browser: all
-
Language: TypeScript 2.1
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (2 by maintainers)
Top GitHub Comments
@ronnyek I resolved same issue by adding:
to
ng-package.json
based on https://github.com/dherges/ng-packagr/issues/119#issuecomment-327871092in case of ngx-datatable UMD bundle name is
ngxDatatable
(based on https://github.com/swimlane/ngx-datatable/issues/599#issuecomment-286899739)Any updates on this one? I’m currently trying to wrap up something with ng-packagr and running into this same problem… No name was provided for external module ‘@swimlane/ngx-datatable/index’ in options.globals - guessing ‘index’