@analogjs/vite-plugin-angular 3.0.0-beta.14 → 3.0.0-beta.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/lib/angular-vite-plugin.d.ts +8 -1
- package/src/lib/angular-vite-plugin.js +2 -1
- package/src/lib/angular-vite-plugin.js.map +1 -1
- package/src/lib/fast-compile-plugin.d.ts +2 -0
- package/src/lib/fast-compile-plugin.js.map +1 -1
- package/src/lib/ngp-compile-plugin.js +23 -14
- package/src/lib/ngp-compile-plugin.js.map +1 -1
- package/src/lib/utils/{tsgo-checker.d.ts → lsp-type-checker.d.ts} +15 -2
- package/src/lib/utils/{tsgo-checker.js → lsp-type-checker.js} +42 -7
- package/src/lib/utils/lsp-type-checker.js.map +1 -0
- package/src/lib/utils/tsgo-checker.js.map +0 -1
package/package.json
CHANGED
|
@@ -5,6 +5,7 @@ import { type DebugOption } from "./utils/debug.js";
|
|
|
5
5
|
import { FileReplacement } from "./plugins/file-replacements.plugin.js";
|
|
6
6
|
import { AnalogStylesheetRegistry } from "./stylesheet-registry.js";
|
|
7
7
|
export { DiagnosticModes, injectViteIgnoreForHmrMetadata, isIgnoredHmrFile, toAngularCompilationFileReplacements, mapTemplateUpdatesToFiles, refreshStylesheetRegistryForFile, describeStylesheetContent, isTestWatchMode, getBrowserModeCliOverride } from "./utils/compilation-shared.js";
|
|
8
|
+
import type { TypeCheckerOption } from "./utils/lsp-type-checker.js";
|
|
8
9
|
export interface PluginOptions {
|
|
9
10
|
/**
|
|
10
11
|
* Path to the tsconfig used for compilation, or a function returning it.
|
|
@@ -45,10 +46,16 @@ export interface PluginOptions {
|
|
|
45
46
|
/**
|
|
46
47
|
* Skip semantic and Angular template diagnostics during compilation.
|
|
47
48
|
* Defaults to `true`, or `false` with `compilation: 'ngp'`, which requires
|
|
48
|
-
*
|
|
49
|
+
* a TypeScript 7 type checker (see `typeChecker`).
|
|
49
50
|
*/
|
|
50
51
|
disableTypeChecking?: boolean;
|
|
51
52
|
/**
|
|
53
|
+
* TypeScript 7 type checker used with `compilation: 'ngp'`: `'tsgo'`
|
|
54
|
+
* (default), `'tsrs'`, or a command serving the TypeScript 7 language
|
|
55
|
+
* server over stdio (`args` defaults to `['--lsp', '--stdio']`).
|
|
56
|
+
*/
|
|
57
|
+
typeChecker?: TypeCheckerOption;
|
|
58
|
+
/**
|
|
52
59
|
* Replace source files at build time, like `fileReplacements` in
|
|
53
60
|
* `angular.json`.
|
|
54
61
|
*/
|
|
@@ -747,7 +747,8 @@ function angular(options) {
|
|
|
747
747
|
isTest,
|
|
748
748
|
isAstroIntegration,
|
|
749
749
|
fastCompileMode: pluginOptions.fastCompileMode,
|
|
750
|
-
disableTypeChecking: pluginOptions.disableTypeChecking
|
|
750
|
+
disableTypeChecking: pluginOptions.disableTypeChecking,
|
|
751
|
+
typeChecker: options?.typeChecker
|
|
751
752
|
}) : angularPlugin();
|
|
752
753
|
return [
|
|
753
754
|
cssExtensionStyleResolverPlugin(),
|