prebundle 1.0.2 → 1.0.3
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/dist/prebundle.d.ts +1 -1
- package/dist/prebundle.js +1 -1
- package/dist/types.d.ts +1 -1
- package/package.json +1 -1
package/dist/prebundle.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { ParsedTask } from './types.js';
|
|
2
|
-
export declare function prebundle(task: ParsedTask, commonExternals
|
|
2
|
+
export declare function prebundle(task: ParsedTask, commonExternals?: Record<string, string>): Promise<void>;
|
package/dist/prebundle.js
CHANGED
|
@@ -108,7 +108,7 @@ function renameDistFolder(task) {
|
|
|
108
108
|
fs.writeJSONSync(pkgPath, pkgJson);
|
|
109
109
|
}
|
|
110
110
|
const pkgName = process.argv[2];
|
|
111
|
-
export async function prebundle(task, commonExternals) {
|
|
111
|
+
export async function prebundle(task, commonExternals = {}) {
|
|
112
112
|
if (pkgName && task.depName !== pkgName) {
|
|
113
113
|
return;
|
|
114
114
|
}
|
package/dist/types.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ export type Config = {
|
|
|
23
23
|
* Configure externals for all packages,
|
|
24
24
|
* will be merged with dependencies[i].externals.
|
|
25
25
|
*/
|
|
26
|
-
externals
|
|
26
|
+
externals?: Record<string, string>;
|
|
27
27
|
dependencies: Array<string | DependencyConfig>;
|
|
28
28
|
};
|
|
29
29
|
export type ParsedTask = {
|