Skip to content
Snippets Groups Projects
Commit 68a87639 authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

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.
parent 1a85271a
No related branches found
No related tags found
No related merge requests found
Pipeline #12331 passed
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment