Skip to content

Patching internal plugins does not work when native plugins are enabled #120

@sapphi-red

Description

@sapphi-red

Describe the regression

unplugin-vue-i18n patches the internal json plugin.
https://github.com/intlify/bundle-tools/blob/d3724e19cae256219f57ac7bc364ff2e07d05502/packages/unplugin-vue-i18n/src/core/resource.ts#L176-L198
This won't work when native plugins as the handler does not exist on JS side.

Reproduction

https://stackblitz.com/edit/vitejs-vite-kgm68otf?file=package.json,src%2FApp.vue,vite.config.js&terminal=build

Expected Behavior

There's a way to skip the internal json plugin for some modules.
related: vitejs#12168

Actual Behavior

There's no way to skip the internal json plugin for some modules.

Steps to Reproduce

No response

System Info

For all environments

Used Package Manager

npm

Logs

No response

Validations

Metadata

Metadata

Assignees

Type

Projects

Status

Has plan

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions