You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Provide an esm build to enable tree shaking in apps importing components from this component library without the need to import all components at once. See webpack tree shaking documentation for more info.
Work and experimentation on this has already been started here.
Unfortunately, with the current state of the build tools, this goal is not achievable for our project structure (vue single file components written in typescript):
To provide .d.ts type declarations after compilation with rollup, dts-bundle can be used. We could also keep our current approach with vue-cli-plugin-ts-bundler but rebuilding that behavior with dts-bundle should be easy.
The default for css option of rollup-plugin-vue already ensures that css styling is embedded into the components and not output as a big css file. Thus, we can benefit from tree shaking for css also.
The text was updated successfully, but these errors were encountered:
The vue-ts-sfc-starter kit uses rollup-plugin-typescript2 in conjunction with rollup. We should check whether the author found a way around the issues described above.
Provide an esm build to enable tree shaking in apps importing components from this component library without the need to import all components at once. See webpack tree shaking documentation for more info.
Work and experimentation on this has already been started here.
Unfortunately, with the current state of the build tools, this goal is not achievable for our project structure (vue single file components written in typescript):
const enum
and pure type definitions without an assigned value.rollup-plugin-typescript2
is fixed, we might realize this approach.To provide
.d.ts
type declarations after compilation with rollup, dts-bundle can be used. We could also keep our current approach with vue-cli-plugin-ts-bundler but rebuilding that behavior withdts-bundle
should be easy.The default for css option of rollup-plugin-vue already ensures that css styling is embedded into the components and not output as a big css file. Thus, we can benefit from tree shaking for css also.
The text was updated successfully, but these errors were encountered: