Skip to content

Commit

Permalink
fix(vite-plugin-angular): remove experimental support for .ng files (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonroberts committed Jan 26, 2024
1 parent 1351396 commit 6f59c0c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion apps/ng-app/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"sourceRoot": "apps/ng-app/src",
"tags": [],
"targets": {
"build": {
"builds": {
"executor": "@nx/vite:build",
"outputs": [
"{options.outputPath}",
Expand Down
1 change: 0 additions & 1 deletion apps/ng-app/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export default defineConfig(({ mode }) => ({
plugins: [
analog({
ssr: false,
vite: { experimental: { dangerouslySupportNgFormat: true } },
}),
],
test: {
Expand Down
9 changes: 2 additions & 7 deletions packages/vite-plugin-angular/src/lib/angular-vite-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,7 @@ export interface PluginOptions {
*/
tsTransformers?: ts.CustomTransformers;
};
experimental?: {
/**
* Enable experimental support for .ng file format! Use as your own risk!
*/
dangerouslySupportNgFormat?: boolean;
};
experimental?: {};
supportedBrowsers?: string[];
transformFilter?: (code: string, id: string) => boolean;
}
Expand Down Expand Up @@ -89,7 +84,7 @@ export function angular(options?: PluginOptions): Plugin[] {
},
supportedBrowsers: options?.supportedBrowsers ?? ['safari 15'],
jit: options?.jit,
supportNgFormat: options?.experimental?.dangerouslySupportNgFormat,
supportNgFormat: false,
};

// The file emitter created during `onStart` that will be used during the build in `onLoad` callbacks for TS files
Expand Down

0 comments on commit 6f59c0c

Please sign in to comment.