-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: use rollup-plugin-dts to rollup TS defs #415
fix: use rollup-plugin-dts to rollup TS defs #415
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @davidlj95 and the rest of your teammates on Graphite |
input: 'projects/ngx-meta/dist/json-ld/index.d.ts', | ||
output: { | ||
format: 'es', | ||
file: 'projects/ngx-meta/dist/json-ld/bundled.d.ts', | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'd have to see if the plugin supports multiple inputs & output files by name. Some quick tests seemed to indicate it doesn't. So the other alternative would be to call rollup
using it's JS API.
respectExternal: true, | ||
}), | ||
], | ||
external: [/node_modules/, /ngx-meta\/dist\/(?!json-ld)/], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ignore references to other ngx-meta
entry points, those definitions will be bundled as part of those entry points
1aaf3d3
to
00389ea
Compare
📦 Bundle size (Angular v15)Git ref:
|
📦 Bundle size (Angular v16)Git ref:
|
📦 Bundle size (Angular v17)Git ref:
|
Proposed changes
Uses
rollup-plugin-dts
to generated bundled Typescript definition files. Why we need those? See #411Eventually this was discarded in favour of #414 as the plugin is in maintenance mode since July 2023
Quick reminders
Relates to issue #411