prebundle 1.2.7 → 1.3.0
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/README.md +11 -0
- package/dist/index.js +4835 -8
- package/dist/index.js.LICENSE.txt +38 -0
- package/dist/types.d.ts +3 -0
- package/package.json +9 -9
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* fill-range <https://github.com/jonschlinkert/fill-range>
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
5
|
+
* Licensed under the MIT License.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/*!
|
|
9
|
+
* is-extglob <https://github.com/jonschlinkert/is-extglob>
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) 2014-2016, Jon Schlinkert.
|
|
12
|
+
* Licensed under the MIT License.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
/*!
|
|
16
|
+
* is-glob <https://github.com/jonschlinkert/is-glob>
|
|
17
|
+
*
|
|
18
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
19
|
+
* Released under the MIT License.
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
/*!
|
|
23
|
+
* is-number <https://github.com/jonschlinkert/is-number>
|
|
24
|
+
*
|
|
25
|
+
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
26
|
+
* Released under the MIT License.
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
/*!
|
|
30
|
+
* to-regex-range <https://github.com/micromatch/to-regex-range>
|
|
31
|
+
*
|
|
32
|
+
* Copyright (c) 2015-present, Jon Schlinkert.
|
|
33
|
+
* Released under the MIT License.
|
|
34
|
+
*/
|
|
35
|
+
|
|
36
|
+
/*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
37
|
+
|
|
38
|
+
/*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
package/dist/types.d.ts
CHANGED
|
@@ -19,6 +19,8 @@ export type DependencyConfig = {
|
|
|
19
19
|
packageJsonField?: string[];
|
|
20
20
|
/** Whether to ignore type definitions */
|
|
21
21
|
ignoreDts?: boolean;
|
|
22
|
+
/** Whether to copy all type definitions files rather than bundle them */
|
|
23
|
+
copyDts?: boolean;
|
|
22
24
|
/** Target ECMA version */
|
|
23
25
|
target?: string;
|
|
24
26
|
beforeBundle?: (task: ParsedTask) => void | Promise<void>;
|
|
@@ -40,6 +42,7 @@ export type ParsedTask = {
|
|
|
40
42
|
distPath: string;
|
|
41
43
|
importPath: string;
|
|
42
44
|
ignoreDts?: boolean;
|
|
45
|
+
copyDts?: boolean;
|
|
43
46
|
prettier?: boolean;
|
|
44
47
|
target: NonNullable<DependencyConfig['target']>;
|
|
45
48
|
minify: NonNullable<DependencyConfig['minify']>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "prebundle",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/rspack-contrib/prebundle"
|
|
@@ -24,21 +24,21 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@vercel/ncc": "0.38.3",
|
|
27
|
-
"prettier": "^3.
|
|
28
|
-
"rollup": "^4.
|
|
29
|
-
"rollup-plugin-dts": "^6.
|
|
30
|
-
"terser": "^5.
|
|
27
|
+
"prettier": "^3.5.3",
|
|
28
|
+
"rollup": "^4.38.0",
|
|
29
|
+
"rollup-plugin-dts": "^6.2.1",
|
|
30
|
+
"terser": "^5.39.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@rslib/core": "0.
|
|
33
|
+
"@rslib/core": "0.6.1",
|
|
34
34
|
"@types/fs-extra": "^11.0.4",
|
|
35
|
-
"@types/node": "22.
|
|
35
|
+
"@types/node": "22.13.14",
|
|
36
36
|
"fast-glob": "^3.3.3",
|
|
37
37
|
"fs-extra": "^11.3.0",
|
|
38
38
|
"rslog": "^1.2.3",
|
|
39
|
-
"typescript": "^5.
|
|
39
|
+
"typescript": "^5.8.2"
|
|
40
40
|
},
|
|
41
|
-
"packageManager": "pnpm@
|
|
41
|
+
"packageManager": "pnpm@10.7.0",
|
|
42
42
|
"publishConfig": {
|
|
43
43
|
"access": "public",
|
|
44
44
|
"registry": "https://registry.npmjs.org/",
|