-
Notifications
You must be signed in to change notification settings - Fork 508
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add JSX extension to @rollup/plugin-node-resolve options (#524)
* Add JSX extension to @rollup/plugin-node-resolve options * Add test for JSX chaining import * Correct comment link
- Loading branch information
Showing
5 changed files
with
22 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
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,7 @@ | ||
// DO NOT IMPORT THIS FILE DIRECTLY FROM index.ts | ||
// THIS FILE IS INTENTIONALLY TO TEST JSX CHAINING IMPORT | ||
// SEE https://github.com/jaredpalmer/tsdx/issues/523 | ||
|
||
import JSXB from './JSX-B'; | ||
|
||
export default JSXB; |
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,7 @@ | ||
// DO NOT IMPORT THIS FILE DIRECTLY FROM index.ts | ||
// THIS FILE IS INTENTIONALLY TO TEST JSX CHAINING IMPORT | ||
// SEE https://github.com/jaredpalmer/tsdx/issues/523 | ||
|
||
export default function JSXComponent() { | ||
return 'JSXC'; | ||
} |
4 changes: 4 additions & 0 deletions
4
test/fixtures/build-default/src/syntax/jsx-import/JSX-import-JSX.jsx
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,4 @@ | ||
// Testing for jsx chaining import | ||
// https://github.com/jaredpalmer/tsdx/issues/523 | ||
|
||
export * from './JSX-A'; |