We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99d51be commit be13656Copy full SHA for be13656
1 file changed
template/main.js
@@ -65,11 +65,10 @@ Object.assign(Instance.prototype, exposedExps);
65
const Type = createType(typeClass[runtimeConfig.addonType]);
66
Object.assign(Type.prototype, enums);
67
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
-};
+const plugin = createPlugin(baseClass[runtimeConfig.addonType]);
+plugin.Acts = Acts;
+plugin.Cnds = Cnds;
+plugin.Exps = Exps;
+plugin.Type = Type;
+plugin.Instance = Instance;
+globalThis.C3[AddonTypeMap[runtimeConfig.addonType]][runtimeConfig.id] = plugin;
0 commit comments