Skip to content

custom block with es6 content #1064

Closed
Closed
@dunkfordyce

Description

@dunkfordyce

Version

13.5.0

Reproduction link

https://github.com/dunkfordyce/custom-block-es6

Steps to reproduce

Run the sample repo as usual. The custom block foo has a loader build/foo-loader.js. The code exports a default function to modify the Component. Because the code is ES6 the function is never run as the loader does not check for an ES6 module, it sees an object instead of a function.

What is expected?

The default exported function should be run.

What is actually happening?

The vue-loader code sees an object instead of a function.

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