Skip to content

Commit

Permalink
Merge pull request #38 from CSBiology/fable-rules
Browse files Browse the repository at this point in the history
Add conditional compilation rules to transpilation-specific sections
  • Loading branch information
HLWeil authored Sep 24, 2024
2 parents 0a181d2 + 0b8f838 commit f8d405f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/DynamicObj/FableJS.fs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
namespace DynamicObj


#if FABLE_COMPILER_JAVASCRIPT || FABLE_COMPILER_TYPESCRIPT || !FABLE_COMPILER

open Fable.Core

module FableJS =
Expand Down Expand Up @@ -156,3 +158,5 @@ module FableJS =
getPropertyHelpers o
|> Array.map (fun h -> h.Name)


#endif
4 changes: 4 additions & 0 deletions src/DynamicObj/FablePy.fs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
namespace DynamicObj


#if FABLE_COMPILER_PYTHON || !FABLE_COMPILER

open Fable.Core
open System.Collections.Generic

Expand Down Expand Up @@ -209,3 +211,5 @@ module FablePy =
getPropertyHelpers o
|> Array.map (fun h -> h.Name)


#endif

0 comments on commit f8d405f

Please sign in to comment.