diff --git a/packages/designer/src/builtin-simulator/create-simulator.ts b/packages/designer/src/builtin-simulator/create-simulator.ts
index 15ab3507b..57369efd8 100644
--- a/packages/designer/src/builtin-simulator/create-simulator.ts
+++ b/packages/designer/src/builtin-simulator/create-simulator.ts
@@ -56,12 +56,13 @@ export function createSimulator(
}
const id = asset.id ? ` data-id="${asset.id}"` : '';
const lv = asset.level || level || AssetLevel.Environment;
+ const scriptType = asset.scriptType ? ` type="${asset.scriptType}"` : '';
if (asset.type === AssetType.JSUrl) {
scripts[lv].push(
- ``,
+ ``,
);
} else if (asset.type === AssetType.JSText) {
- scripts[lv].push(``);
+ scripts[lv].push(``);
} else if (asset.type === AssetType.CSSUrl) {
styles[lv].push(
``,
diff --git a/packages/types/src/assets.ts b/packages/types/src/assets.ts
index 852ed0038..f0e6d3539 100644
--- a/packages/types/src/assets.ts
+++ b/packages/types/src/assets.ts
@@ -38,6 +38,7 @@ export interface AssetItem {
device?: string;
level?: AssetLevel;
id?: string;
+ scriptType?: string;
}
export type AssetList = Array;