From c337998eb915ff716f46b83d8067b0fda1527b03 Mon Sep 17 00:00:00 2001 From: Craigory Coppola Date: Thu, 20 Apr 2023 17:18:38 -0400 Subject: [PATCH] fix(nx-plugin): don't add tslib if compiling with swc (#16418) --- packages/plugin/src/generators/plugin/plugin.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/plugin/src/generators/plugin/plugin.ts b/packages/plugin/src/generators/plugin/plugin.ts index b16a7c2bda3dc..053064f33df5d 100644 --- a/packages/plugin/src/generators/plugin/plugin.ts +++ b/packages/plugin/src/generators/plugin/plugin.ts @@ -87,7 +87,9 @@ export async function pluginGenerator(host: Tree, schema: Schema) { }) ); - tasks.push(addTsLibDependencies(host)); + if (options.bundler === 'tsc') { + tasks.push(addTsLibDependencies(host)); + } tasks.push( addDependenciesToPackageJson(