rolldown-require 2.0.28 → 2.0.29
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/index.d.mts +5 -6
- package/package.json +12 -3
package/dist/index.d.mts
CHANGED
|
@@ -105,25 +105,24 @@ interface InternalOptions extends Omit<Options, 'cwd' | 'filepath'> {
|
|
|
105
105
|
}
|
|
106
106
|
//#endregion
|
|
107
107
|
//#region src/config.d.ts
|
|
108
|
-
declare const configDefaults: Readonly<{
|
|
108
|
+
export declare const configDefaults: Readonly<{
|
|
109
109
|
resolve: {
|
|
110
110
|
extensions: string[];
|
|
111
111
|
};
|
|
112
112
|
}>;
|
|
113
113
|
//#endregion
|
|
114
114
|
//#region src/bundler.d.ts
|
|
115
|
-
declare function bundleFile(fileName: string, options: InternalOptions): Promise<{
|
|
115
|
+
export declare function bundleFile(fileName: string, options: InternalOptions): Promise<{
|
|
116
116
|
code: string;
|
|
117
117
|
dependencies: string[];
|
|
118
118
|
}>;
|
|
119
119
|
//#endregion
|
|
120
120
|
//#region src/loader.d.ts
|
|
121
|
-
declare function loadFromBundledFile(fileName: string, bundledCode: string, options: InternalOptions, dependencies?: string[]): Promise<any>;
|
|
121
|
+
export declare function loadFromBundledFile(fileName: string, bundledCode: string, options: InternalOptions, dependencies?: string[]): Promise<any>;
|
|
122
122
|
//#endregion
|
|
123
123
|
//#region src/index.d.ts
|
|
124
|
-
declare function bundleRequire<T = any>(options: Options): Promise<{
|
|
124
|
+
export declare function bundleRequire<T = any>(options: Options): Promise<{
|
|
125
125
|
mod: T;
|
|
126
126
|
dependencies: string[];
|
|
127
127
|
}>;
|
|
128
|
-
//#endregion
|
|
129
|
-
export { bundleFile, bundleRequire, configDefaults, loadFromBundledFile };
|
|
128
|
+
//#endregion
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rolldown-require",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.29",
|
|
5
5
|
"description": "bundle and require a file using rolldown!",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
8
|
-
"homepage": "https://
|
|
8
|
+
"homepage": "https://github.com/weapp-vite/weapp-vite#readme",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
11
|
"url": "git+https://github.com/weapp-vite/weapp-vite.git",
|
|
@@ -15,6 +15,11 @@
|
|
|
15
15
|
"url": "https://github.com/weapp-vite/weapp-vite/issues"
|
|
16
16
|
},
|
|
17
17
|
"keywords": [
|
|
18
|
+
"weapp-vite",
|
|
19
|
+
"weapp",
|
|
20
|
+
"wechat",
|
|
21
|
+
"mini-program",
|
|
22
|
+
"miniprogram",
|
|
18
23
|
"require",
|
|
19
24
|
"rolldown",
|
|
20
25
|
"runtime",
|
|
@@ -47,8 +52,12 @@
|
|
|
47
52
|
"engines": {
|
|
48
53
|
"node": "^20.19.0 || >=22.12.0"
|
|
49
54
|
},
|
|
55
|
+
"publishConfig": {
|
|
56
|
+
"access": "public",
|
|
57
|
+
"registry": "https://registry.npmjs.org"
|
|
58
|
+
},
|
|
50
59
|
"peerDependencies": {
|
|
51
|
-
"rolldown": "1.2.
|
|
60
|
+
"rolldown": "1.2.8"
|
|
52
61
|
},
|
|
53
62
|
"dependencies": {
|
|
54
63
|
"@rollup/pluginutils": "^5.4.0",
|