rollup-plugin-internal | Rollup plugin to explicitly include dependencies | Plugin library
kandi X-RAY | rollup-plugin-internal Summary
kandi X-RAY | rollup-plugin-internal Summary
Rollup plugin to explicitly include dependencies in the emitted bundle
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of rollup-plugin-internal
rollup-plugin-internal Key Features
rollup-plugin-internal Examples and Code Snippets
Community Discussions
Trending Discussions on rollup-plugin-internal
QUESTION
I'm trying to rollup Vue component lib, written on the typescript + vue-property-decorator. I have several Vue components, and plugin class in a separated file, where the components are imported:
...ANSWER
Answered 2020-Oct-11 at 13:52That tsconfig contains paths
affects only how TypeScript compiler resolves modules but doesn't replace aliased import paths in JS output. It's possible for tools to transparently process files with a respect to paths
option but this shouldn't be expected.
Module aliasing for the bundle can be addressed by another Rollup plugin like @rollup/plugin-alias
. This reveals the problem with the latest @rollup/plugin-typescript
that results in processing errors when it's used with other plugins.
A way to make this setup workable is to switch to another TypeScript plugin, rollup-plugin-typescript2
:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install rollup-plugin-internal
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page