Skip to content

Generator Support missing for [dynamic] Import #4944

@TheLarkInn

Description

@TheLarkInn

Working with @hzoo we identified that there was missing generator support for the import() type.

ERROR in ./index.js
Module build failed: ReferenceError: /Users/req88847/Code/@webpack-examples/with-react/react-dynamic-route-loading-es6/client/index.js: unknown node of type "Import" with constructor "Node"

Code example

let lodash = import('lodash');

lodash.then(module => {
  return module.default;
});

Should be fixed with a PR just about to submit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    outdatedA closed issue/PR that is archived due to age. Recommended to make a new issuepkg: generator

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions