Skip to content

First created app's config.compilerOptions applies to all later apps #9618

@markrian

Description

@markrian

Vue version

3.3.8

Link to minimal reproduction

https://codepen.io/markrian/pen/JjxOmrw?editors=1011

Steps to reproduce

  1. Create two apps via createApp
  2. Configure the second one of them to use custom compilerOptions
  3. Observe those compilerOptions are ignored on the second app, as if you didn't set them.

OR

  1. Create two apps via createApp
  2. Configure the first one of them to use custom compilerOptions
  3. Observe those compilerOptions also apply (incorrectly) to the second app.

What is expected?

Each app should respect only its own compilerOptions.

What is actually happening?

It looks like apps share compilerOptions in some way.

System Info

No response

Any additional comments?

In my minimal reproduction I only test whitespace: 'preserve'. I don't actually know if it applies to all compilerOptions or just that one - I've made an assumption about the effects here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    🔨 p3-minor-bugPriority 3: this fixes a bug, but is an edge case that only affects very specific usage.scope: compiler

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions