Use the rollup resolve plugin for finding package asssets
Instead of hardcoding the paths of the node_modules directory we use the node-resolve plugin of rollup to find the root of the corresponding JS package and calcucate a path from there. Resolving a package requires calling an async function, so we have to use await in the rollup config. Luckily rollup supports configs wrapped in a promise, so we just have to wrap it in a function which returns a promise.
Showing
- packages/app-shell/rollup.config.js 46 additions, 62 deletionspackages/app-shell/rollup.config.js
- packages/auth/rollup.config.js 45 additions, 43 deletionspackages/auth/rollup.config.js
- packages/data-table-view/rollup.config.js 62 additions, 60 deletionspackages/data-table-view/rollup.config.js
- packages/file-handling/rollup.config.js 36 additions, 33 deletionspackages/file-handling/rollup.config.js
- packages/knowledge-base-web-page-element-view/rollup.config.js 45 additions, 42 deletions...ges/knowledge-base-web-page-element-view/rollup.config.js
- packages/person-profile/rollup.config.js 47 additions, 44 deletionspackages/person-profile/rollup.config.js
- packages/person-select/rollup.config.js 47 additions, 44 deletionspackages/person-select/rollup.config.js
- rollup.utils.js 28 additions, 0 deletionsrollup.utils.js
Loading
Please register or sign in to comment