Skip to content

Commit

Permalink
fix: transform any Angular packages
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonroberts committed Aug 28, 2024
1 parent 817df4e commit 144bab0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions apps/ng-app/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export default defineConfig(({ mode }) => ({
plugins: [
analog({
ssr: false,
static: true,
vite: {
experimental: {
supportAnalogFormat: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export function buildOptimizerPlugin({
},
async transform(code, id) {
if (/\.[cm]?js$/.test(id)) {
const angularPackage = /[\\/]node_modules[\\/]@angular[\\/]/.test(id);
const angularPackage = /fesm20/.test(id);

if (!angularPackage) {
return {
Expand Down

0 comments on commit 144bab0

Please sign in to comment.