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

feat: allow using regex or function in exclude option #53

Merged
merged 2 commits into from
Mar 21, 2023

Conversation

stafyniaksacha
Copy link
Collaborator

@stafyniaksacha stafyniaksacha commented Mar 11, 2023

This allow using regex or custom function in component meta module

export default defineNuxtConfig({
  componentMeta: {
    exclude: [/test/i, (component: any) => {
      return component.global
    }]
  },
})

Also, removed exculde from component meta checker option as we exclude items upstream

@stafyniaksacha
Copy link
Collaborator Author

stafyniaksacha commented Mar 11, 2023

moved to #51 (comment)

@Atinux
Copy link
Member

Atinux commented Mar 13, 2023

Approved maybe too fast, I think it could be nice to see how it works for each layer.

@Tahul
Copy link
Contributor

Tahul commented Mar 21, 2023

Hey; this looks good to me.

We can improve granularity in subsequent PRs, but this seem to add the possibility to use regexes without losing the current exclude feature set.

@Tahul Tahul merged commit 0d7d1df into nuxtlabs:main Mar 21, 2023
@stafyniaksacha stafyniaksacha deleted the feat/exclude-option branch March 21, 2023 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants