-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add integration test for original sourcesContent through transformations
- Loading branch information
Will Binns-Smith
committed
May 6, 2021
1 parent
dad91eb
commit e0abdbc
Showing
4 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
packages/core/integration-tests/test/integration/sourcemap-original-sourcecontents/.babelrc
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,3 @@ | ||
{ | ||
"presets": ["@babel/preset-react", "@babel/preset-flow"] | ||
} |
14 changes: 14 additions & 0 deletions
14
packages/core/integration-tests/test/integration/sourcemap-original-sourcecontents/index.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,14 @@ | ||
// @flow | ||
|
||
import * as React from "react"; | ||
import * as ReactDOM from "react-dom"; | ||
|
||
type Props = {| | ||
bar: string, | ||
|}; | ||
|
||
function App(props: Props) { | ||
return <div>{props.bar}</div>; | ||
} | ||
|
||
ReactDOM.render(<App bar="bar" />, document.getElementById("root")); |
Empty file.
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