Skip to content

Commit d191035

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

File tree

1 file changed

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

1 file changed

+4
-2
lines changed

lib/node_modules/@stdlib/buffer/ctor/lib/index.js

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

1717
var hasNodeBufferSupport = require( '@stdlib/utils/detect-node-buffer-support' );
18+
var main = require( './buffer.js' );
19+
var polyfill = require( './polyfill.js' );
1820

1921

2022
// MAIN //
2123

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

2931

0 commit comments

Comments
 (0)