-
-
Notifications
You must be signed in to change notification settings - Fork 273
Document usage with Typescript / Webpack config style #315
Comments
What do you mean? Please clarify |
What is missing here https://github.com/webpack-contrib/worker-loader#integrating-with-typescript? |
https://github.com/webpack-contrib/worker-loader#config, change |
I have a Typescript error related to I use the following definition as described in the documentation : declare module '*.worker.js' {
class WebpackWorker extends Worker {
constructor()
}
export default WebpackWorker
} But when I include the worker with import MyWorker from "./my.worker.js` I get
It seems Typescript is using the interface of the file
|
I am getting a similar error that @mquandalle mentioned; 'src/my.worker"' has no default export.' Has anyone had any luck figuring out how to fix it? My include looks like the documented example, as does my type definition file. |
Documentation Is:
Please Explain in Detail...
Please add documentation on how to use this lib with Typescript that uses the config style, NOT the inline imports. Most tutorials I've seen have moved on from the inline imports style. It isn't clear how to use this lib with Typescript / config style. Thanks!
Your Proposal for Changes
The text was updated successfully, but these errors were encountered: