Skip to content

好奇是只有electron主进程编译为字节码了还是说渲染进程也可以编译 #68

Answered by alex8088
sunny-fun asked this question in Q&A
Discussion options

You must be logged in to vote

字节码是基于node的vm模块实现,字节码需要运行在node环境,主进程和预加载脚本符合这个条件(预加载脚步要使用还需禁用沙盒),渲染进程是基于浏览器环境因此不支持。

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by alex8088
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants