Skip to content

[Bug]: Unable to import external module with webpackIgnore #15626

@Dreamsorcerer

Description

@Dreamsorcerer

Version

All versions

Steps to reproduce

In my code I have:

import(/* webpackIgnore: true */ js_module)

Expected behavior

Import the module how a browser would import the module, based on the presence of the webpackIgnore comment. i.e. Making a network request to the provided URL.

Actual behavior

It attempts to import a local module:

Cannot find module 'http://localhost:8080/admin/js' from 'src/App.js'

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions