Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
RebeccaStevens opened this issue Nov 23, 2022 · 0 comments · May be fixed by #11
Open

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

RebeccaStevens opened this issue Nov 23, 2022 · 0 comments · May be fixed by #11
Labels
bug Something isn't working

Comments

@RebeccaStevens
Copy link
Contributor

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.
        }),
      ],
    },
  },
}
@mourner mourner added the bug Something isn't working label Feb 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants