From e77faaf8564ba5b9705128d092e8fce1681c832d Mon Sep 17 00:00:00 2001 From: Christoph Reiter <reiter.christoph@gmail.com> Date: Mon, 10 May 2021 14:19:34 +0200 Subject: [PATCH] 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 --- rollup.utils.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rollup.utils.js b/rollup.utils.js index 1029d63f..909af52c 100644 --- a/rollup.utils.js +++ b/rollup.utils.js @@ -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) { -- GitLab