Skip to content

Commit 6187667

Browse files
committed
Refactor to avoid dynamic module resolution
1 parent aacf4d8 commit 6187667

File tree

1 file changed

+4
-2
lines changed
  • lib/node_modules/@stdlib/time/now/lib

1 file changed

+4
-2
lines changed

lib/node_modules/@stdlib/time/now/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 bool = require( './detect.js' );
18+
var main = require( './now.js' );
19+
var polyfill = require( './polyfill.js' );
1820

1921

2022
// MAIN //
2123

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

2931

0 commit comments

Comments
 (0)