Skip to content
This repository was archived by the owner on Sep 9, 2021. It is now read-only.
This repository was archived by the owner on Sep 9, 2021. It is now read-only.

Use inline options in typescript #282

@lianghx-319

Description

@lianghx-319

For typescript

I should declare my own module like this.

declare module 'worker-loader!*' {
  class WebpackWorker extends Worker {
    constructor();
  }
  export default WebpackWorker;
}

For inline worker

I should set the inline option, but if module declare start with worker-loader!, it like to override my webpack config with no options after worker-loader

The result

In typescript, inline option in webpack config not work, I mush set inline option on the path after loader

Expected

A solution that, typescript can detect the WebpackWorker and I can config the worker-loader in webpack config not write a query string when importing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions