herberttn / bytenode-webpack-plugin

Compile JavaScript into bytecode using bytenode
MIT License
105 stars 27 forks source link

Add `vue-cli-electron-builder` support #4

Open gtsigner opened 3 years ago

gtsigner commented 3 years ago

Thank you for the very amazing lib, but i meet some problem when rederer

image

 error  in ./src/renderer/main.loader.js

Module build failed (from ./node_modules/thread-loader/dist/cjs.js):
Thread Loader (Worker 0)

yo guys, im using vue-cli-electron-builder lib, when i add your plugin to build it mind me module cannot be found

gtsigner commented 3 years ago

the main process is worked, but not work on rederder process

gtsigner commented 3 years ago

image it's my setting

gtsigner commented 3 years ago

and i think when im building renderder module, virtualModules not work

gtsigner commented 3 years ago

stopped here image virtualModules not work

gtsigner commented 3 years ago

another question is if i want to ignore some files, what should i do

gtsigner commented 3 years ago

i created same issue at here, https://github.com/nklayman/vue-cli-plugin-electron-builder/issues/1346

gtsigner commented 3 years ago

Also sometimes i want to ignore some script dont create jsc https://github.com/sbrow/bytenode-webpack-plugin this lib have done this feature

gtsigner commented 3 years ago

i think that's maybe https://github.com/vuejs/vue-cli this project issue, and it's working on vue-electreon framework

herberttn commented 3 years ago

I don't know how vue-cli-electron-builder works, but webpack-virtual-modules should work anyway. I think yours is a different problem. Do you have a repro repo?

I'm planning to add include and exclude options soon.

gtsigner commented 3 years ago

yep, i have , pls see this repo https://github.com/godtoy/vue-cli-electron-bytenode-issue-6451

gtsigner commented 3 years ago

thanks y

I don't know how vue-cli-electron-builder works, but webpack-virtual-modules should work anyway. I think yours is a different problem. Do you have a repro repo?

I'm planning to add include and exclude options soon.

thanks man

gtsigner commented 3 years ago

Yo, man. anything new ?

herberttn commented 3 years ago

Hello @godtoy! I'll probably try to test this in the next few days... I was really busy finishing another project.

gtsigner commented 3 years ago

hello, any update ?

liuhao16 commented 3 years ago

@herberttn May I ask if you have fixed this problem? I also encountered the same problem src/main.loader.js module could not be found

gtsigner commented 3 years ago

no yet

jiumeng @.***> 于2021年8月24日周二 下午7:09写道:

@herberttn https://github.com/herberttn May I ask if you have fixed this problem? I also encountered the same problem src/main.loader.js module could not be found

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/herberttn/bytenode-webpack-plugin/issues/4#issuecomment-904544774, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADIB2VHA6YRAYFLX7I3OXM3T6N4WDANCNFSM43ZSYRMA .

zhaoruilinda commented 2 years ago

@herberttn May I ask when you plan to fix this problem? I also encountered the same problem src/main.loader.js module could not be found

gtsigner commented 2 years ago

give up to encrypt the renderer process codes. it only works on main.js image

herberttn commented 2 years ago

I've never tried to use this plugin with vue-cli-electron-builder or electron-builder, so I don't know if it works or what your error could be.

From my point of view, this is a feature request and not exactly a bug to be fixed. So, since this is not a bug and I don't use these tools, I haven't had the time to check this out yet.

Please feel free to open a pull request adding support for these tools or solving the problem you encountered, that would be nice!

devzw commented 2 years ago

@herberttn May I ask if you have fixed this problem? I also encountered the same problem src/main.loader.js module could not be found

absir1949 commented 2 years ago

i have the same problem.