Skip to content

Commit be13656

Browse files
committed
fixes #21
1 parent 99d51be commit be13656

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

template/main.js

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,10 @@ Object.assign(Instance.prototype, exposedExps);
6565
const Type = createType(typeClass[runtimeConfig.addonType]);
6666
Object.assign(Type.prototype, enums);
6767

68-
globalThis.C3[AddonTypeMap[runtimeConfig.addonType]][runtimeConfig.id] = {
69-
Acts,
70-
Cnds,
71-
Exps,
72-
Instance,
73-
Type,
74-
Plugin: createPlugin(baseClass[runtimeConfig.addonType]),
75-
};
68+
const plugin = createPlugin(baseClass[runtimeConfig.addonType]);
69+
plugin.Acts = Acts;
70+
plugin.Cnds = Cnds;
71+
plugin.Exps = Exps;
72+
plugin.Type = Type;
73+
plugin.Instance = Instance;
74+
globalThis.C3[AddonTypeMap[runtimeConfig.addonType]][runtimeConfig.id] = plugin;

0 commit comments

Comments
 (0)