We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a2cd88 commit 1c63d87Copy full SHA for 1c63d87
src/bindings/Babel.res
@@ -59,15 +59,17 @@ module PlaygroundValidator = {
59
switch (firstDeclaration.id, firstDeclaration.init) {
60
| (Identifier({name}), Some(init)) if name === "App" =>
61
switch init->Null.toOption {
62
- | Some(ObjectExpression({
63
- properties: [
64
- ObjectProperty({
+ | Some(ObjectExpression({properties})) =>
+ let foundEntryPoint = properties->Array.find(property => {
+ switch property {
65
+ | ObjectProperty({
66
key: Identifier({name: "make"}),
67
value: Identifier({name: "Playground$App"}),
- }),
68
- ],
69
- })) =>
70
- entryPoint.contents = true
+ }) => true
+ | _ => false
+ }
71
+ })
72
+ entryPoint.contents = Option.isSome(foundEntryPoint)
73
| _ => ()
74
}
75
0 commit comments