From 6d3f5a180a6f0c334571f9635c91a0d427ecdb77 Mon Sep 17 00:00:00 2001 From: Tim Deschryver Date: Mon, 25 Jun 2018 11:23:39 +0200 Subject: [PATCH] perf(Schematics): remove path filters in effects schematics --- modules/schematics/src/effect/index.ts | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/modules/schematics/src/effect/index.ts b/modules/schematics/src/effect/index.ts index 2536f4b65a..b2def221f7 100644 --- a/modules/schematics/src/effect/index.ts +++ b/modules/schematics/src/effect/index.ts @@ -121,15 +121,7 @@ export default function(options: EffectOptions): Rule { return chain([ branchAndMerge( - chain([ - filter( - path => - path.endsWith('.module.ts') && - !path.endsWith('-routing.module.ts') - ), - addImportToNgModule(options), - mergeWith(templateSource), - ]) + chain([addImportToNgModule(options), mergeWith(templateSource)]) ), ])(host, context); };