-
-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(angular): Allow SWC additional plugins
feat(angular): Support plugins for component styleUrls and templateUrls Signed-off-by: Jordan Hall <jordan@libertyware.co.uk>
- Loading branch information
1 parent
5ca77d2
commit b129a60
Showing
4 changed files
with
79 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 12 additions & 2 deletions
14
packages/angular/vite/src/lib/vite-plugin-angular/plugin-options.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,17 @@ | ||
import type { JscTarget } from '@swc/core'; | ||
import type { JscTarget, Plugin } from '@swc/core'; | ||
import { OptimizerOptions } from './utils/optimizer'; | ||
|
||
import { AngularComponentOptions } from '@nxext/angular-swc'; | ||
export interface AngularVitePluginOptions { | ||
target: JscTarget; | ||
buildOptimizer?: OptimizerOptions; | ||
/** | ||
* @summary This is an experiment plugin system. It could be removed or change at any time | ||
*/ | ||
component?: Omit<AngularComponentOptions, 'sourceUrl'>; | ||
/** | ||
* @summary This is an experiment plugin system. It could be removed or change at any time | ||
*/ | ||
swc?: { | ||
plugins: Plugin[]; | ||
}; | ||
} |