Angular2 based Material Design components, directives and services are Accordion, Autocomplete, Collapse, Colorpicker, Datepicker, Dialog(Modal), Menu, Multiselect, Select, Tabs, Tags(Chips), Toast and Tooltip.
After upgrade and some breaking changes in @angular/compiler-cli library can't be build with rollup in AoT mode
What is the expected behavior?
Library works in AoT mode
What is the current behavior?
Errors like
[13:25:25] 'rollup' errored after 6.59 s
[13:25:25] Error: Could not resolve './calendar-body' from aot/tmp/node_modules/md2/datepicker/calendar-body.ngfactory.js
at error (/home/andrew/www/riotgames/live/dashboard/node_modules/rollup/dist/rollup.js:185:14)
at then.resolvedId (/home/andrew/www/riotgames/live/dashboard/node_modules/rollup/dist/rollup.js:18244:8)
at <anonymous>
Because paths in compiled files like ./aot/tmp/node_modules/md2/datepicker/calendar-body.ngfactory.js
are relative ex. import * as i3 from "./calendar-body";
Bug, feature request, or proposal:
After upgrade and some breaking changes in @angular/compiler-cli library can't be build with rollup in AoT mode
What is the expected behavior?
Library works in AoT mode
What is the current behavior?
Errors like
Because paths in compiled files like
./aot/tmp/node_modules/md2/datepicker/calendar-body.ngfactory.js
are relative ex.import * as i3 from "./calendar-body";
My tsconfig.json is:
What are the steps to reproduce?
What is the use-case or motivation for changing an existing behavior?
Which versions of Angular, MD2, OS, browsers are affected?
angular@5.1.2 md2@0.0.29 rollup@0.51.8
My workaround