Skip to content

Commit 08a37f4

Browse files
committed
.
1 parent 14718b3 commit 08a37f4

File tree

7 files changed

+21
-5
lines changed

7 files changed

+21
-5
lines changed
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
import { barFunction } from './src/shared';
2+
import { Foo } from './foo';
3+
import { utilFunctionA } from './utils';
24

3-
export { barFunction };
5+
export { barFunction, Foo, utilFunctionA };
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export { barFunction } from '../../../moduleB/bar';
1+
export { barFunction } from '../../../moduleB/reexports';
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { barFunction } from './reexports';
2+
3+
export const useBarFunction = () => {
4+
console.log('Using barFunction in Module A');
5+
barFunction();
6+
};
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
import { Foo, utilFunctionA } from './src/shared';
2+
import { barFunction } from './bar';
23

3-
export { Foo, utilFunctionA };
4+
export { Foo, utilFunctionA, barFunction };
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
export { Foo } from '../../../moduleA/foo';
2-
export { utilFunctionA } from '../../../moduleA/utils';
1+
export { Foo, utilFunctionA } from '../../../moduleA/reexports';
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { Foo, utilFunctionA } from './reexports';
2+
3+
export const useFooAndUtil = () => {
4+
console.log('Using Foo and utilFunctionA in Module B');
5+
const fooInstance = new Foo();
6+
utilFunctionA();
7+
};
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { utilFunctionA } from "../../moduleA/reexports"

0 commit comments

Comments
 (0)