-
Notifications
You must be signed in to change notification settings - Fork 825
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
[discussion]: desktop/renderer-app #1173
Comments
Supporting |
what is |
vite not support electron-render target by default, we should transform electron package. |
okey |
That's true, but it's maybe not a big problem -- see my experimental repo. The thing I didn't test is electron-builder -- I don't know if it requires some special code format like not using es modules. Having tracked this here: electron/electron#21457. |
Anyother task I missing? |
none |
I found electron use require to get some file,the problem is more partial,If we use vite ,the building for development env |
If we only want fast bundling time, then we may choose esbuild. In fact, we are using vite because it brings really good dev experience. |
As we all know, vite is esm bunlder,we have three way to reslove the commonjs model (electron,nodeBuildInModel,events), first is write |
What's that mean? Can you provide some code examples? |
@hyrious |
Wow, that sounds promising. I'm upvoting that. Currently only the |
okkk |
|
You can treat it as
|
|
Then we may ask @BlackHole1 . |
As of electron@12, electron no longer recommends the use of nodejs(node / node library) and most electron api's in the renderer process. So we now have a new task, which is to remove all the node(modules) api and some of the electron api from We can use cc: @hyrious @Cyberhan123 |
I can write an new vite plugin to support |
good news render app has change to vite #1265, but I suggest to keep webpack, we may need reveal all the details |
The text was updated successfully, but these errors were encountered: