diff --git a/README.md b/README.md index c4e70ba..9b8b950 100644 --- a/README.md +++ b/README.md @@ -174,7 +174,7 @@ declare module "worker-loader!*" { constructor(); } - export = WebpackWorker; + export default WebpackWorker; } ``` @@ -191,7 +191,7 @@ ctx.addEventListener("message", (event) => console.log(event)); **App.ts** ```typescript -import Worker = require("worker-loader!./Worker"); +import Worker from "worker-loader!./Worker"; const worker = new Worker();