Skip to content

Plugin excludes everything when no include specified #516

@nelisbijl

Description

@nelisbijl

Reporting a bug?

Was this code intentional:

  function resolveIncludeExcludeForLegacy() {
    const customBlockInclude = meta.framework === "vite" ? RE_SFC_I18N_CUSTOM_BLOCK : RE_SFC_I18N_WEBPACK_CUSTOM_BLOCK;
    return include ? [[...include, customBlockInclude], void 0] : [void 0, ["**/**"]];
  }

When no include prop is specified everything is excluded ??
When specifying

include: []

things are back to normal

Expected behavior

.

Reproduction

.

Issue Package

vite-plugin-vue-i18n

System Info

.

Screenshot

No response

Additional context

No response

Validations

  • Read the Contributing Guidelines.
  • Read the README
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A open a GitHub Discussion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions