qwikifiers / qwik-nx

Nx plugin for Qwik
131 stars 24 forks source link

feat(qwik-nx): add projects filter for qwikNxVite plugin #72

Closed dmitry-stepanenko closed 1 year ago

dmitry-stepanenko commented 1 year ago

By default qwikNxVite plugin will provide Qwik with paths of all Nx projects, that are specified in the tsconfig.base.json. However, this behavior might not be always suitable, especially in cases when there's code that you don't want the optimizer to go through (for example, Angular components). Adding filter options in order to be able to exclude such libs from the list that is provided to the Qwik

plugins: [
  ...
  qwikNxVite({
     includeProjects: { name: /^shared/, tags: ['scope:shared'] },
     excludeProjects: { name: ['tmp-test-lib-b'] },
  })
]