xshell 1.0.125 → 1.0.126
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/builder.js +2 -3
- package/package.json +1 -1
package/builder.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { fileURLToPath } from 'url';
|
|
2
1
|
import Webpack from 'webpack';
|
|
3
2
|
import { Lock, Timer, filter_values } from './utils.js';
|
|
4
3
|
export class Bundler {
|
|
@@ -33,9 +32,9 @@ export class Bundler {
|
|
|
33
32
|
this.analyzer = analyzer;
|
|
34
33
|
// let smp = new SpeedMeasurePlugin()
|
|
35
34
|
// const config: Webpack.Configuration = smp.wrap({
|
|
36
|
-
|
|
35
|
+
let resolve_cache = {};
|
|
37
36
|
function get_loader(name) {
|
|
38
|
-
return
|
|
37
|
+
return resolve_cache[name] ??= import.meta.resolve(name).fdir;
|
|
39
38
|
}
|
|
40
39
|
this.config = {
|
|
41
40
|
name,
|