Skip to content

Can vue-cli detect the syntax error when import an empty string? #4914

Closed
@givingwu

Description

What problem does this feature solve?

when user import an empty string like import '' in SFC, the webpack build will stuck at 98% after emitting CopyPlugin.

issue#4174
issue#4252

What does the proposed API look like?

Hope the vue-template-compiler could check the path string is an available string for require(path), and if not use the error-overlay to indicates what and where error happened.

Thanks.

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