Skip to content

BUG: "export 'default' (imported as 'selection_enter') was not found in './enter' #4817

@kukjevov

Description

@kukjevov

Do you want to request a feature or report a bug?
BUG

What is the current behavior?
Currently if you try to use d3.js library, webpack will generate warning:
"export 'default' (imported as 'selection_enter') was not found in './enter'

That is not so big problem, but when you run javascript generated by webpack it will fail with error:
SyntaxError: function statement requires a name

Problem is using ES2015 import default and export default which is not working.

If the current behavior is a bug, please provide the steps to reproduce.
https://github.com/kukjevov/webpack-error-sample

What is the expected behavior?
It should work

If this is a feature request, what is motivation or use case for changing the behavior?

Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.
nodejs: 7.10, webpack 2.5.0, Windows 10

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