prebundle 1.1.0-beta.7 → 1.2.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 +27 -0
- package/compiled/fast-glob/index.js +5496 -7063
- package/compiled/fs-extra/index.d.ts +1063 -1
- package/compiled/fs-extra/index.js +2114 -2780
- package/compiled/rslog/index.js +375 -404
- package/dist/compiled/fast-glob/index.d.ts +2 -0
- package/dist/compiled/fast-glob/index.js +5332 -0
- package/dist/index.js +1 -1
- package/dist/prebundle.d.ts +1 -1
- package/dist/prebundle.js +20 -5
- package/dist/src/constant.d.ts +8 -0
- package/dist/src/constant.js +48 -0
- package/dist/src/helper.d.ts +6 -0
- package/dist/src/helper.js +87 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.js +9 -0
- package/dist/src/prebundle.d.ts +2 -0
- package/dist/src/prebundle.js +197 -0
- package/dist/src/types.d.ts +50 -0
- package/dist/src/types.js +1 -0
- package/dist/types.d.ts +2 -0
- package/package.json +15 -12
package/README.md
CHANGED
|
@@ -70,6 +70,22 @@ export default {
|
|
|
70
70
|
};
|
|
71
71
|
```
|
|
72
72
|
|
|
73
|
+
### dtsExternals
|
|
74
|
+
|
|
75
|
+
Externals for dts.
|
|
76
|
+
|
|
77
|
+
```ts
|
|
78
|
+
// prebundle.config.mjs
|
|
79
|
+
export default {
|
|
80
|
+
dependencies: [
|
|
81
|
+
{
|
|
82
|
+
name: 'foo',
|
|
83
|
+
dtsExternals: ['webpack'],
|
|
84
|
+
},
|
|
85
|
+
],
|
|
86
|
+
};
|
|
87
|
+
```
|
|
88
|
+
|
|
73
89
|
### minify
|
|
74
90
|
|
|
75
91
|
Whether to minify the code, default `false`.
|
|
@@ -185,3 +201,14 @@ export default {
|
|
|
185
201
|
],
|
|
186
202
|
};
|
|
187
203
|
```
|
|
204
|
+
|
|
205
|
+
### prettier
|
|
206
|
+
|
|
207
|
+
Whether to prettier the code and strip comments, default `false`.
|
|
208
|
+
|
|
209
|
+
```ts
|
|
210
|
+
// prebundle.config.mjs
|
|
211
|
+
export default {
|
|
212
|
+
prettier: true,
|
|
213
|
+
};
|
|
214
|
+
```
|