declare externals directly in package.json to get them properly generated in web-test-runner.config.mjs to prevent @web/test-runner from falling back to package.json which doesn't necessarily exist
This commit is contained in:
@@ -13,6 +13,7 @@ export const createImportMap = (args) => {
|
||||
|
||||
// replace ./dist-cms with src and remove /index.js
|
||||
const modulePath = value.replace(/^\.\/dist-cms/, args.rootDir).replace('.js', '.ts');
|
||||
console.log('replacing', value, 'with', modulePath)
|
||||
const importAlias = `${packageJsonName}/${moduleName}`;
|
||||
|
||||
imports[importAlias] = modulePath;
|
||||
|
||||
Reference in New Issue
Block a user