Skip to content

Commit 5f33669

Browse files
committed
refactor: remove all Assets-static.js modules
1 parent fc963c7 commit 5f33669

File tree

13 files changed

+6
-23
lines changed

13 files changed

+6
-23
lines changed

packages/fiori/src/Assets-static.ts

-6
This file was deleted.

packages/icons-business-suite/src/Assets-static.ts

Whitespace-only changes.

packages/icons-business-suite/src/json-imports/Icons.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const loadIconsBundle = async (collection: string): Promise<CollectionData> => {
1010
}
1111

1212
if (typeof iconData === "string" && (iconData as string).endsWith(".json")) {
13-
throw new Error("[icons-business-suite] Invalid bundling detected - dynamic JSON imports bundled as URLs. Switch to inlining JSON files from the build or use `import \"@ui5/webcomponents-icons-business-suite/dist/Assets-static.js\". Check the \"Assets\" documentation for more information.");
13+
throw new Error("[icons-business-suite] Invalid bundling detected - dynamic JSON imports bundled as URLs. Switch to inlining JSON files from the build. Check the \"Assets\" documentation for more information.");
1414
}
1515
return iconData;
1616
}

packages/icons-tnt/src/Assets-static.ts

Whitespace-only changes.

packages/icons-tnt/src/json-imports/Icons.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const loadIconsBundle = async (collection: string): Promise<CollectionData> => {
1010
}
1111

1212
if (typeof iconData === "string" && (iconData as string).endsWith(".json")) {
13-
throw new Error("[icons-tnt] Invalid bundling detected - dynamic JSON imports bundled as URLs. Switch to inlining JSON files from the build or use `import \"@ui5/webcomponents-icons-tnt/dist/Assets-static.js\". Check the \"Assets\" documentation for more information.");
13+
throw new Error("[icons-tnt] Invalid bundling detected - dynamic JSON imports bundled as URLs. Switch to inlining JSON files from the build. Check the \"Assets\" documentation for more information.");
1414
}
1515
return iconData;
1616
}

packages/icons/src/Assets-static.ts

-1
This file was deleted.

packages/icons/src/json-imports/Icons.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const loadIconsBundle = async (collection: string): Promise<CollectionData> => {
1010
}
1111

1212
if (typeof iconData === "string" && (iconData as string).endsWith(".json")) {
13-
throw new Error("[icons] Invalid bundling detected - dynamic JSON imports bundled as URLs. Switch to inlining JSON files from the build or use `import \"@ui5/webcomponents-icons/dist/Assets-static.js\". Check the \"Assets\" documentation for more information.");
13+
throw new Error("[icons] Invalid bundling detected - dynamic JSON imports bundled as URLs. Switch to inlining JSON files from the build. Check the \"Assets\" documentation for more information.");
1414
}
1515
return iconData;
1616
}

packages/localization/lib/generate-json-imports/cldr.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ ${caseImports}
4343
const importAndCheck = async (localeId) => {
4444
const data = await importCldrJson(localeId);
4545
if (typeof data === "string" && data.endsWith(".json")) {
46-
throw new Error(\`[LocaleData] Invalid bundling detected - dynamic JSON imports bundled as URLs. Switch to inlining JSON files from the build or use 'import ".../Assets-static.js"'. Check the \"Assets\" documentation for more information.\`);
46+
throw new Error(\`[LocaleData] Invalid bundling detected - dynamic JSON imports bundled as URLs. Switch to inlining JSON files from the build. Check the \"Assets\" documentation for more information.\`);
4747
}
4848
return data;
4949
}

packages/localization/src/Assets-static.ts

-2
This file was deleted.

packages/main/src/Assets-static.ts

-6
This file was deleted.

packages/theming/src/Assets-static.ts

-2
This file was deleted.

packages/tools/lib/generate-json-imports/i18n.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ import { registerI18nLoader } from "@ui5/webcomponents-base/dist/asset-registrie
7676
const importAndCheck = async (localeId) => {
7777
const data = await importMessageBundle(localeId);
7878
if (typeof data === "string" && data.endsWith(".json")) {
79-
throw new Error(\`[i18n] Invalid bundling detected - dynamic JSON imports bundled as URLs. Switch to inlining JSON files from the build or use 'import ".../Assets-static.js"'. Check the \"Assets\" documentation for more information.\`);
79+
throw new Error(\`[i18n] Invalid bundling detected - dynamic JSON imports bundled as URLs. Switch to inlining JSON files from the build. Check the \"Assets\" documentation for more information.\`);
8080
}
8181
return data;
8282
}

packages/tools/lib/generate-json-imports/themes.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ ${dynamicImportLines}
6464
const loadAndCheck = async (themeName) => {
6565
const data = await loadThemeProperties(themeName);
6666
if (typeof data === "string" && data.endsWith(".json")) {
67-
throw new Error(\`[themes] Invalid bundling detected - dynamic JSON imports bundled as URLs. Switch to inlining JSON files from the build or use 'import ".../Assets-static.js"'. Check the \"Assets\" documentation for more information.\`);
67+
throw new Error(\`[themes] Invalid bundling detected - dynamic JSON imports bundled as URLs. Switch to inlining JSON files from the build. Check the \"Assets\" documentation for more information.\`);
6868
}
6969
return data;
7070
};

0 commit comments

Comments
 (0)