Skip to content

Commit 23330da

Browse files
committed
Refactor to avoid dynamic module resolution
1 parent 3e765e2 commit 23330da

File tree

1 file changed

+4
-2
lines changed
  • lib/node_modules/@stdlib/buffer/alloc-unsafe/lib

1 file changed

+4
-2
lines changed

lib/node_modules/@stdlib/buffer/alloc-unsafe/lib/index.js

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

1717
var hasAllocUnsafe = require( './has_alloc_unsafe.js' );
18+
var main = require( './main.js' );
19+
var polyfill = require( './polyfill.js' );
1820

1921

2022
// MAIN //
2123

2224
var allocUnsafe;
2325
if ( hasAllocUnsafe ) {
24-
allocUnsafe = require( './main.js' );
26+
allocUnsafe = main;
2527
} else {
26-
allocUnsafe = require( './polyfill.js' );
28+
allocUnsafe = polyfill;
2729
}
2830

2931

0 commit comments

Comments
 (0)