Skip to content

[vue/compiler-sfc] parser plugin: "deferredImportEvaluation".Β #14380

@houd1ni

Description

@houd1ni

Vue version

3.5.27

Link to minimal reproduction

https://stackblitz.com/edit/vitejs-vite-ela3jctw?file=src%2FApp.vue

Steps to reproduce

Just look at right side of repro at stackblitz.

What is expected?

It's working.

What is actually happening?

An error: SyntaxError: [vue/compiler-sfc] This experimental syntax requires enabling the parser plugin: "deferredImportEvaluation". (12:7) very red.

Any additional comments?

I haven't found literally anything about the plugin except for in the COMPILED @vue/compiler-sfc version (there are two like this in the check chains:

if (phase === "defer") {
    this.expectPlugin("deferredImportEvaluation", loc);
    node.phase = "defer";
  }

Metadata

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