Skip to content

Commit f2c2e3e

Browse files
authored
fix: reintroduce bundle (#1699)
It turns out removing the bundle meant that chai loads a lot slower thanks to module resolution, etc. This reintroduces the bundle for 5.x, which will later become the only entrypoint in 6.x (i.e. `lib` will no longer be shipped).
1 parent 445d477 commit f2c2e3e

File tree

7 files changed

+497
-9
lines changed

7 files changed

+497
-9
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,5 @@ coverage
2020

2121
test/auth/*
2222
!test/auth/.gitkeep
23+
24+
/index.js

chai.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export * from './lib/chai.js';
1+
export * from './index.js';

index.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

lib/chai/interface/assert.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* MIT Licensed
55
*/
66

7-
import * as chai from '../../../index.js';
7+
import * as chai from '../../chai.js';
88
import {Assertion} from '../assertion.js';
99
import {flag, inspect} from '../utils/index.js';
1010
import {AssertionError} from 'assertion-error';

lib/chai/interface/expect.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* MIT Licensed
55
*/
66

7-
import * as chai from '../../../index.js';
7+
import * as chai from '../../chai.js';
88
import {Assertion} from '../assertion.js';
99
import {AssertionError} from 'assertion-error';
1010

0 commit comments

Comments
 (0)