Skip to content

Commit

Permalink
feat: support signal input from angular 17.1
Browse files Browse the repository at this point in the history
Adds a custom transformer to transform Angular Code, specifically,
signals (input, query and models) to behave better in jit-environment.

Solves help-me-mom#7976
  • Loading branch information
André Andersson committed Apr 24, 2024
1 parent 0afae31 commit 539a16e
Show file tree
Hide file tree
Showing 8 changed files with 512 additions and 0 deletions.
6 changes: 6 additions & 0 deletions karma.conf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ import path from 'node:path';
import { Config } from 'karma';
import puppeteer from 'puppeteer';
import { TsconfigPathsPlugin } from 'tsconfig-paths-webpack-plugin';
import { Program } from 'typescript';

import { angularJitApplicationTransform } from './transformers/jit-transform.js';

process.env.CHROME_BIN = puppeteer.executablePath();

Expand Down Expand Up @@ -120,6 +123,9 @@ export default (config: Config) => {
options: {
configFile: './tsconfig.json',
transpileOnly: true,
getCustomTransformers: (program: Program) => ({
before: [angularJitApplicationTransform(program)],
}),
},
},
],
Expand Down
Loading

0 comments on commit 539a16e

Please sign in to comment.