From 0b8f838bcea4aaa474d645770c1def7918b97356 Mon Sep 17 00:00:00 2001 From: HLWeil Date: Tue, 24 Sep 2024 12:52:40 +0200 Subject: [PATCH] add conditional compilation rules to transpilation-specific sections --- src/DynamicObj/FableJS.fs | 4 ++++ src/DynamicObj/FablePy.fs | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/DynamicObj/FableJS.fs b/src/DynamicObj/FableJS.fs index e66b0ef..7d889b7 100644 --- a/src/DynamicObj/FableJS.fs +++ b/src/DynamicObj/FableJS.fs @@ -1,6 +1,8 @@ namespace DynamicObj +#if FABLE_COMPILER_JAVASCRIPT || FABLE_COMPILER_TYPESCRIPT || !FABLE_COMPILER + open Fable.Core module FableJS = @@ -156,3 +158,5 @@ module FableJS = getPropertyHelpers o |> Array.map (fun h -> h.Name) + +#endif \ No newline at end of file diff --git a/src/DynamicObj/FablePy.fs b/src/DynamicObj/FablePy.fs index 69095e7..4d706b9 100644 --- a/src/DynamicObj/FablePy.fs +++ b/src/DynamicObj/FablePy.fs @@ -1,6 +1,8 @@ namespace DynamicObj +#if FABLE_COMPILER_PYTHON || !FABLE_COMPILER + open Fable.Core open System.Collections.Generic @@ -209,3 +211,5 @@ module FablePy = getPropertyHelpers o |> Array.map (fun h -> h.Name) + +#endif \ No newline at end of file