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.

Worker-loader with inline option produce cjs/loader error on build #310

Description

@chemiakinav
  • Operating System: Mac
  • Node Version: 15.3.0
  • NPM Version: 6.14.8
  • webpack Version: 4.44.2
  • worker-loader Version: 3.0.8

Expected Behavior

Correct webpack build and work when I use worker-loader with the inline option

Actual Behavior

I've got error:

Screenshot 2021-03-24 at 11 00 04

Code

With another options, it works fine, without inline - too (but it produce SCP error, that's why I need inline option)

import Worker from 'worker-loader?inline=no-fallback!./workers/my-worker'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions