-
-
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.
- Loading branch information
1 parent
5746ab1
commit 6956600
Showing
18 changed files
with
258 additions
and
105 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
3 changes: 2 additions & 1 deletion
3
packages/core/integration-tests/test/integration/hmr-css-modules/index.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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
import * as styles from "./index.module.css"; | ||
import React from 'react'; | ||
|
||
const Hello = () => <div classNames={styles.hello}>hello</div>; | ||
export const Hello = () => <div classNames={styles.hello}>hello</div>; |
5 changes: 5 additions & 0 deletions
5
packages/core/integration-tests/test/integration/hmr-css-modules/package.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 @@ | ||
{ | ||
"dependencies": { | ||
"react": "^16" | ||
} | ||
} |
4 changes: 4 additions & 0 deletions
4
packages/core/integration-tests/test/integration/hmr-multiple-parents-reload/a.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,4 @@ | ||
import {fn1} from './utils'; | ||
|
||
output('a: ' + fn1()); | ||
module.hot.accept(); |
3 changes: 3 additions & 0 deletions
3
packages/core/integration-tests/test/integration/hmr-multiple-parents-reload/b.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,3 @@ | ||
import {fn2} from './utils'; | ||
|
||
output('b: ' + fn2()); |
3 changes: 3 additions & 0 deletions
3
packages/core/integration-tests/test/integration/hmr-multiple-parents-reload/fn1.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,3 @@ | ||
export function fn1() { | ||
return 'fn1'; | ||
} |
3 changes: 3 additions & 0 deletions
3
packages/core/integration-tests/test/integration/hmr-multiple-parents-reload/fn2.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,3 @@ | ||
export function fn2() { | ||
return 'fn2'; | ||
} |
2 changes: 2 additions & 0 deletions
2
packages/core/integration-tests/test/integration/hmr-multiple-parents-reload/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,2 @@ | ||
import './a'; | ||
import './b'; |
2 changes: 2 additions & 0 deletions
2
packages/core/integration-tests/test/integration/hmr-multiple-parents-reload/utils.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,2 @@ | ||
export * from './fn1'; | ||
export * from './fn2'; |
5 changes: 5 additions & 0 deletions
5
packages/core/integration-tests/test/integration/hmr-multiple-parents/a.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,5 @@ | ||
import {fn1} from './utils'; | ||
|
||
export function a() { | ||
return 'a: ' + fn1(); | ||
} |
5 changes: 5 additions & 0 deletions
5
packages/core/integration-tests/test/integration/hmr-multiple-parents/b.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,5 @@ | ||
import {fn2} from './utils'; | ||
|
||
export function b() { | ||
return 'b: ' + fn2(); | ||
} |
3 changes: 3 additions & 0 deletions
3
packages/core/integration-tests/test/integration/hmr-multiple-parents/fn1.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,3 @@ | ||
export function fn1() { | ||
return 'fn1'; | ||
} |
3 changes: 3 additions & 0 deletions
3
packages/core/integration-tests/test/integration/hmr-multiple-parents/fn2.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,3 @@ | ||
export function fn2() { | ||
return 'fn2'; | ||
} |
6 changes: 6 additions & 0 deletions
6
packages/core/integration-tests/test/integration/hmr-multiple-parents/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,6 @@ | ||
import {a} from './a'; | ||
import {b} from './b'; | ||
|
||
output(a() + ' ' + b()); | ||
|
||
module.hot.accept(); |
2 changes: 2 additions & 0 deletions
2
packages/core/integration-tests/test/integration/hmr-multiple-parents/utils.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,2 @@ | ||
export * from './fn1'; | ||
export * from './fn2'; |
3 changes: 3 additions & 0 deletions
3
packages/core/integration-tests/test/integration/hmr-url/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,3 @@ | ||
let url = new URL('test.txt', import.meta.url); | ||
output(url); | ||
module.hot.accept(); |
1 change: 1 addition & 0 deletions
1
packages/core/integration-tests/test/integration/hmr-url/test.txt
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 @@ | ||
hi |
Oops, something went wrong.