Skip to content
This repository was archived by the owner on Mar 8, 2019. It is now read-only.
This repository was archived by the owner on Mar 8, 2019. It is now read-only.

Code Splitting in Component Causes SyntaxError #50

@steriley

Description

@steriley

I have ran into the following issue when using webpacks Code Splitting feature:

The component uses the feature to load a large carousel library when it is required. However this is causing errors when serving / building:

SyntaxError: Carousel.vue: Unexpected token (25:23)
Warning: Cannot parse Carousel.vue:
    Error: SyntaxError: Carousel.vue: Unexpected token (25:23)

Carousel.vue line 25 consists of:
const Carousel = () => import(/* webpackChunkName: "carousel" */ './LargeLibrary.vue');

I have tried removing the magic comments in the import, but it appears to be the import statement that is tripping up the build process.

The styleguide is generated but this particular Component is obviously missing from the output.

Great project by the way, finding it amazing to use!

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