star-sdk-cli 0.1.15 → 0.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.mjs +0 -4
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -1436,10 +1436,6 @@ function injectImportMapIfNeeded(html, deployDir) {
|
|
|
1436
1436
|
if (/<script\s[^>]*type\s*=\s*["']importmap["'][^>]*>/i.test(html)) {
|
|
1437
1437
|
return html;
|
|
1438
1438
|
}
|
|
1439
|
-
const bareImportPattern = /\bfrom\s+['"](?:star-sdk|star-canvas|star-audio|star-leaderboard|star-multiplayer)['"]/;
|
|
1440
|
-
if (!bareImportPattern.test(html)) {
|
|
1441
|
-
return html;
|
|
1442
|
-
}
|
|
1443
1439
|
const version = resolveStarSdkVersion(deployDir);
|
|
1444
1440
|
const suffix = version ? `@${version}` : "";
|
|
1445
1441
|
const imports = {};
|