Skip to content

Warnings thrown when using Rewire #759

Closed
@matt-oconnell

Description

@matt-oconnell

Getting "named exports are not supported in *.vue files." error using newest version of vue-loader

We are using The rewire babel plugin which is causing this line to fail within vue-loader. The issue seems to be that the check within vue-loader is looking for any properties other than the default and __esModule property. Rewire inserts some extra "private" properties on the component:

screen shot 2017-04-05 at 13 03 13

A proposed fix would be to check for any "non-private" properties, while still allowing objects with properties prefixed with __ to pass this check not log an error. This may or may not be considered the responsibility of the vue-loader project but if it is, let me know and I'd be happy to make a PR

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