Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
65c8496
commit 780930f
Showing
5 changed files
with
39 additions
and
4 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
packages/babel-plugin-transform-react-jsx/test/fixtures/sourcemaps/JSXText/input.js
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,11 @@ | ||
import React from 'react'; | ||
|
||
export default function App() { | ||
return ( | ||
<div className="App"> | ||
<h1>Welcome to my application!</h1> | ||
This is my app! | ||
<strong>MINE.</strong> | ||
</div> | ||
) | ||
} |
5 changes: 5 additions & 0 deletions
5
packages/babel-plugin-transform-react-jsx/test/fixtures/sourcemaps/JSXText/options.json
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 @@ | ||
{ | ||
"sourceType": "module", | ||
"plugins": [["transform-react-jsx", { "runtime": "classic" }]], | ||
"sourceMap": true | ||
} |
6 changes: 6 additions & 0 deletions
6
packages/babel-plugin-transform-react-jsx/test/fixtures/sourcemaps/JSXText/output.mjs
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,6 @@ | ||
import React from 'react'; | ||
export default function App() { | ||
return /*#__PURE__*/React.createElement("div", { | ||
className: "App" | ||
}, /*#__PURE__*/React.createElement("h1", null, "Welcome to my application!"), "This is my app!", /*#__PURE__*/React.createElement("strong", null, "MINE.")); | ||
} |
14 changes: 14 additions & 0 deletions
14
packages/babel-plugin-transform-react-jsx/test/fixtures/sourcemaps/JSXText/source-map.json
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,14 @@ | ||
{ | ||
"version": 3, | ||
"names": [ | ||
"React", | ||
"App" | ||
], | ||
"sources": [ | ||
"sourcemaps/JSXText/input.js" | ||
], | ||
"sourcesContent": [ | ||
"import React from 'react';\n\nexport default function App() {\n return (\n <div className=\"App\">\n <h1>Welcome to my application!</h1>\n This is my app!\n <strong>MINE.</strong>\n </div>\n )\n}" | ||
], | ||
"mappings": "AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,eAAe,SAASC,GAAG,GAAG;EAC5B,oBACE;IAAK,SAAS,EAAC;EAAK,gBAClB,gCAAI,4BAA0B,CAAK,mBAEnC,mDAAQ,OAAK,CAAS,CAClB;AAEV" | ||
} |
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