Rollup plugin to inline Angular templateUrl and styleUrls into transpiled JavaScript files, and remove module.id. Current version: 1.0.1. Based on the Angular Material2 inlining script, it operates after ngc to produce UMD bundles while preserving ES2015 for tree shaking. Aims to simplify Angular library builds, but the README warns of inaccurate sourcemaps. Serves as a transitional tool; the author recommends a more modern approach that inlines templates/styles directly in TypeScript sources via https://github.com/filipesilva/angular-quickstart-lib.
npm install rollup-plugin-angular-inlineVerified import paths — ran on the pinned version, not inferred.
Configure Rollup to inline Angular template URLs and styles after ngc compilation for UMD bundle production.
Consider using a build step that inlines templates/styles directly in TypeScript sources, e.g., angular-quickstart-lib.
Migrate to a TypeScript-based inliner like the one in angular-quickstart-lib.
Run 'npm install --save-dev rollup-plugin-angular-inline'.
Use 'import angularInline from ...' instead of 'import { angularInline } from ...'.