Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Unity] JsEnv 初始化时默认加载的js文件能否改成可配置的? #73

Closed
PleijaEternal opened this issue Oct 22, 2020 · 2 comments

Comments

@PleijaEternal
Copy link

我用 https://github.com/vercel/ncc 这个工具打包单文件服务的时候, 在正常的 NodeJS 环境下可以运行, 比如 apollo-server-express 这个包 , 参考网址 但是Puerts里面, 会在启动时和默认加载的 puerts/modular.js 有冲突, 因为工具打包以后所有的模块都在一个文件里面, 和 modular.js 判断模块是否存在的方式有冲突, 这些默认加载的js文件能否提供某种方式进行手动控制或者配置呢?

@chexiongsheng
Copy link
Collaborator

像webpack的话,打包的所有模块间的require都不会走到puerts的require的,这个ncc不知道。群有很多人都做了单文件打包,你可以去群问问。

@PleijaEternal
Copy link
Author

PleijaEternal commented Oct 22, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants