Skip to content

Commit ef8f6e9

Browse files
committed
Refactor to avoid dynamic module resolution
1 parent 05278ca commit ef8f6e9

File tree

1 file changed

+4
-2
lines changed
  • lib/node_modules/@stdlib/array/int8/lib

1 file changed

+4
-2
lines changed

lib/node_modules/@stdlib/array/int8/lib/index.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,17 @@
1515
// MODULES //
1616

1717
var hasInt8ArraySupport = require( '@stdlib/utils/detect-int8array-support' );
18+
var builtin = require( './int8array.js' );
19+
var polyfill = require( './polyfill.js' );
1820

1921

2022
// MAIN //
2123

2224
var ctor;
2325
if ( hasInt8ArraySupport() ) {
24-
ctor = require( './int8array.js' );
26+
ctor = builtin;
2527
} else {
26-
ctor = require( './polyfill.js' );
28+
ctor = polyfill;
2729
}
2830

2931

0 commit comments

Comments
 (0)