xshell 1.0.127 → 1.0.128
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.d.ts +1 -0
- package/builder.js +5 -1
- package/package.json +1 -1
package/builder.d.ts
CHANGED
|
@@ -45,4 +45,5 @@ export declare class Bundler {
|
|
|
45
45
|
constructor(name: string, target: 'web' | 'nodejs', fpd_root: string, fpd_out: string, fpdt_cache: string, entry: Record<string, string>, { source_map, globals, externals, commonjs2, single_chunk, dynamic_import, assets_stats, analyzer, dts, exclude_modules, cache_version, production, sass, }?: BundlerOptions);
|
|
46
46
|
build(print?: boolean): Promise<void>;
|
|
47
47
|
close(): Promise<void>;
|
|
48
|
+
build_and_close(print?: boolean): Promise<void>;
|
|
48
49
|
}
|
package/builder.js
CHANGED
|
@@ -35,7 +35,7 @@ export class Bundler {
|
|
|
35
35
|
// const config: Webpack.Configuration = smp.wrap({
|
|
36
36
|
let resolve_cache = {};
|
|
37
37
|
function get_loader(name) {
|
|
38
|
-
return resolve_cache[name] ??= fileURLToPath(import.meta.resolve(name)).fdir;
|
|
38
|
+
return resolve_cache[name] ??= fileURLToPath(import.meta.resolve(`${name}/package.json`)).fdir;
|
|
39
39
|
}
|
|
40
40
|
this.config = {
|
|
41
41
|
name,
|
|
@@ -295,5 +295,9 @@ export class Bundler {
|
|
|
295
295
|
});
|
|
296
296
|
}));
|
|
297
297
|
}
|
|
298
|
+
async build_and_close(print = true) {
|
|
299
|
+
await this.build(print);
|
|
300
|
+
await this.close();
|
|
301
|
+
}
|
|
298
302
|
}
|
|
299
303
|
//# sourceMappingURL=builder.js.map
|