Skip to content

I can't get this working correctly with vite for a vue project #9

Open
@RebeccaStevens

Description

@RebeccaStevens

Essentially the problem I've got is that when using this plugin, the production code produced is incorrect.

It seems that something is being changed that shouldn't be. However, I've spent ages trying to debug this but just can't figure out what's going wrong.
When I look at difference between the input and output code as it goes through this plugin, I can't spot anything changing that should be.
So I'm at a loss as to why this issue is happening.

I thought it still best to open this issue to document the problem though.

Vite config snippet:

{
  build: {
    rollupOptions: {
      plugins: [
        unassert({
          include: ["**/*.ts"],                           // <-- This causes issues with the build
          include: ["some-pattern-that-matches-nothing"], // <-- This does not cause any issues, but obviously assertions are not removed.
        }),
      ],
    },
  },
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions