This repository has been archived by the owner on Apr 29, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure JSX elements under Program are transpiled
- Loading branch information
1 parent
ab9909e
commit c9b798b
Showing
8 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
var div = <div></div>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
var _jsxWrapper = function _jsxWrapper(func, args) { | ||
var wrapper = args ? function wrapper() { | ||
return func.apply(this, args); | ||
} : func; | ||
wrapper.__jsxDOMWrapper = true; | ||
return wrapper; | ||
}; | ||
|
||
var div = _jsxWrapper(function () { | ||
elementOpen("div"); | ||
return elementClose("div"); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
var div = <div key={i++}></div>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
var _jsxWrapper = function _jsxWrapper(func, args) { | ||
var wrapper = args ? function wrapper() { | ||
return func.apply(this, args); | ||
} : func; | ||
wrapper.__jsxDOMWrapper = true; | ||
return wrapper; | ||
}; | ||
|
||
var div = _jsxWrapper(function (_ref) { | ||
elementOpen("div", _ref, ["key", _ref]); | ||
return elementClose("div"); | ||
}, [i++]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
var div = <div key={i++}></div>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
var _jsxWrapper = function _jsxWrapper(func, args) { | ||
var wrapper = args ? function wrapper() { | ||
return func.apply(this, args); | ||
} : func; | ||
wrapper.__jsxDOMWrapper = true; | ||
return wrapper; | ||
}; | ||
|
||
var _statics = ["key", ""], | ||
_wrapper = function _wrapper(_ref) { | ||
elementOpen("div", _ref, (_statics[1] = _ref, _statics)); | ||
return elementClose("div"); | ||
}; | ||
|
||
var div = _jsxWrapper(_wrapper, [i++]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"options": { | ||
"hoist": true | ||
} | ||
} |