eva-engine / eva.js

Eva.js is a front-end game engine specifically for creating interactive game projects.
https://eva.js.org
MIT License
1.75k stars 108 forks source link

IIFE variable #143

Closed fanmingfei closed 2 years ago

fanmingfei commented 3 years ago

window.EVA not var window window.EVA.plugin = {} not this.EVA.plugin

fanmingfei commented 2 years ago

https://github.com/rollup/rollup/blob/66b3139b4be1d52342088dc00ef89fb9412f639a/src/finalisers/iife.ts#L103

Rollup 这里代码是写死的,貌似无法通过修改配置的方式修改。

fanmingfei commented 2 years ago

这个本来是为了让微信小游戏更快的使用Eva.js来提的issue,考虑通过其他方式吧。

fanmingfei commented 2 years ago

发现有其他方法解决这个问题