electron-vue-next icon indicating copy to clipboard operation
electron-vue-next copied to clipboard

Only issues using this project with rollup

Open codeit-ninja opened this issue 2 years ago • 3 comments

I tried using this repo as this supports electron and vue 3 as a nice starter package.

Well, its hell itself with rollup. Litterly every package from npm breaks rollup. As example, try to use the firebase-admin SDK with this repo.

I dont know how to fix all these errors as I am not familair with rollup, but its tottaly broken. Project works fine aslong as you dont install thirt party dependecies.

codeit-ninja avatar Aug 26 '21 14:08 codeit-ninja

Can you try to add firebase-admin this dependencies to external in package.json? I guess this is caused by rollup cannot handle some circular deps in node modules.

I write a section about adding dependencies in online document... but it seems it's not intuitive...

Maybe I will figure out how to auto detect these kind of things automatically...

ci010 avatar Aug 27 '21 06:08 ci010

Some update... Recently, I tried to use esbuild to bundle the project, and it seems work fine to me. (Blazing fast too)

One more issue need to resolve is importing the .node or native (carry binary inside) package.

If I solve those problem, I think this project will switch to esbuild to build main process.

ci010 avatar Aug 31 '21 07:08 ci010

You are doing great work. I will retry this project tomorrow!

codeit-ninja avatar Sep 12 '21 03:09 codeit-ninja