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

getPackagePath: Work around error with plugin-node-resolve v13

It tries to call a resolve method which doesn't exist somehow.
Mock it to get things back to the old behaviour.

Fixes #22
parent 95e8b708
No related branches found
No related tags found
No related merge requests found
Pipeline #30294 passed
......@@ -32,6 +32,8 @@ export async function getDistPath(packageName, assetPath) {
export async function getPackagePath(packageName, assetPath) {
const r = resolve();
// XXX: https://gitlab.tugraz.at/dbp/web-components/toolkit/-/issues/57
r.resolve = () => { return null; };
const resolved = await r.resolveId(packageName);
let packageRoot;
if (resolved !== null) {
......
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