Skip to content

Commit

Permalink
escape the root module name
Browse files Browse the repository at this point in the history
  • Loading branch information
0x53A committed Oct 1, 2019
1 parent 154f540 commit 072e7a6
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 10 deletions.
5 changes: 2 additions & 3 deletions src/bridge.fs
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,8 @@ module internal Bridge =
)

{
// use the F# file name as the module namespace
// TODO ensure valid name
Namespace = nameSpace
// use the escaped F# file name as the module namespace
Namespace = Naming.escapeWord nameSpace
Opens =
[
"System"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ts2fable 0.0.0
module rec #275-private-members
module rec ``#275-private-members``
open System
open Fable.Core
open Fable.Import.JS
Expand Down
2 changes: 1 addition & 1 deletion test/fragments/regressions/#277-unwrap-options.expected.fs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ts2fable 0.0.0
module rec #277-unwrap-options
module rec ``#277-unwrap-options``
open System
open Fable.Core
open Fable.Import.JS
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ts2fable 0.0.0
module rec #278-typeliterals-return
module rec ``#278-typeliterals-return``
open System
open Fable.Core
open Fable.Import.JS
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ts2fable 0.0.0
module rec #288-type-alias-float-number
module rec ``#288-type-alias-float-number``
open System
open Fable.Core
open Fable.Import.JS
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ts2fable 0.0.0
module rec #289-recursive-merge-modules
module rec ``#289-recursive-merge-modules``
open System
open Fable.Core
open Fable.Import.JS
Expand Down
2 changes: 1 addition & 1 deletion test/fragments/regressions/#292-static-props.expected.fs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ts2fable 0.0.0
module rec #292-static-props
module rec ``#292-static-props``
open System
open Fable.Core
open Fable.Import.JS
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ts2fable 0.0.0
module rec #xxx-error-to-exception
module rec ``#xxx-error-to-exception``
open System
open Fable.Core
open Fable.Import.JS
Expand Down

0 comments on commit 072e7a6

Please sign in to comment.