Open theCele opened 4 years ago
Sorry for the late reply, @theCele! Might be related to #29, not sure.
Can you try the small fix I proposed there? Another quick guess: Maybe webpack's resolve.extensions
is not yet set to include *.ts
/*.tsx
files?
I am trying to make it work threads-plugin with electron-webpack. I have the example here https://github.com/theCele/electron-webpack-thread
By the way - it works great for JS, only when the files are typescript I don't see the bundle.worker.js in the dist/main folder.
I have followed all instructions. Not sure what I do wrong
Added
"target": "esnext"
totsconfig.json
Added
threads-plugin
towebpack.main.additions.js
andwebpack.renderer.additions.js
Added
"whiteListedModules": ["threads"]
topackage.json
I've lost days looking around but couldn't find a solution. Also, I'm not sure if it is electron-webpack or threads-plugin issue.
Could you please have a look at my implementation? What do you think cases this TypeScript issue?