mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-14 23:32:20 +00:00
feat(cockpit): the owner flags load at startup from one generated 15 KB sheet; the loading status names the place packs while they load on first lookup
This commit is contained in:
1 parent
63aa45c520
commit
5a6cf22be1
35 files changed
+643
-216
No files matched your search
@@ -109,14 +109,7 @@ export async function checkPackageBoundaries(root) {
|
||||
// template blocks belong to the component file itself.
|
||||
if (info.id.startsWith('\0')) return;
|
||||
const id = info.id.split('?')[0];
|
||||
// A declared dependency also owns the asset files it ships (a
|
||||
// flag-icons SVG imported as a URL) that a glob resolves in place.
|
||||
const dependencyAsset = group.external.some((external) =>
|
||||
id.startsWith(
|
||||
`${normalizePath(path.join(root, 'node_modules', external))}/`,
|
||||
),
|
||||
);
|
||||
if (!allowed.has(id) && !dependencyAsset) {
|
||||
if (!allowed.has(id)) {
|
||||
throw new Error(
|
||||
`Package boundary ${name} imports an unowned module: ${path.relative(root, id)}`,
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user