Skip to content
Snippets Groups Projects
Select Git revision
  • 68a87639e207b61b896fc18c610e7f94d798b1ef
  • master default protected
  • renovate/major-symfony
  • renovate/source-sans-pro-3.x
  • renovate/rollup-plugin-postcss-4.x
  • renovate/rollup-plugin-md-1.x
  • renovate/rollup-plugin-url-6.x
  • renovate/rollup-plugin-node-resolve-11.x
  • renovate/rollup-plugin-commonjs-17.x
  • demo
  • publish
  • update-deps
  • qr-perf
  • wip-cleanup
  • demo-file-handling
15 results

rollup.utils.js

Forked from digital blueprint / Web Component Framework / Toolkit
Source project has a limited visibility.
  • Reiter, Christoph's avatar
    68a87639
    Use the rollup resolve plugin for finding package asssets · 68a87639
    Reiter, Christoph authored
    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.
    68a87639
    History
    Use the rollup resolve plugin for finding package asssets
    Reiter, Christoph authored
    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.