Skip to content

Commit f830c98

Browse files
committed
refactor: do not re-export system.ts from entry script
1 parent fe93840 commit f830c98

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
export * from './system.js';
2-
31
import { createReactiveSystem, type ReactiveNode, type ReactiveFlags } from './system.js';
42

53
const enum EffectFlags {

tests/build.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ test('build: cjs', () => {
77
const index = require('../cjs/index.cjs');
88
const system = require('../cjs/system.cjs');
99

10-
expect(typeof index.createReactiveSystem).toBe('function');
10+
expect(typeof index.getCurrentSub).toBe('function');
1111
expect(typeof system.createReactiveSystem).toBe('function');
1212
});
1313

1414
test('build: esm', async () => {
1515
const index = await import('../esm/index.mjs');
1616
const system = await import('../esm/system.mjs');
1717

18-
expect(typeof index.createReactiveSystem).toBe('function');
18+
expect(typeof index.getCurrentSub).toBe('function');
1919
expect(typeof system.createReactiveSystem).toBe('function');
2020
});

0 commit comments

Comments
 (0)