Skip to content

Commit 9686768

Browse files
committed
Refactor to avoid dynamic module resolution
1 parent 3b0d559 commit 9686768

File tree

1 file changed

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

1 file changed

+4
-2
lines changed

lib/node_modules/@stdlib/buffer/from-string/lib/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,17 @@
1515
// MODULES //
1616

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

1921

2022
// MAIN //
2123

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

2931

0 commit comments

Comments
 (0)