Skip to content

Commit 0ce66fe

Browse files
committed
Refactor to avoid dynamic module resolution
1 parent a4cb43b commit 0ce66fe

File tree

1 file changed

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

1 file changed

+4
-2
lines changed

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

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

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

1921

2022
// MAIN //
2123

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

2931

0 commit comments

Comments
 (0)