@unpackjs/core 1.6.3 → 1.7.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/compiled/css-loader/index.js +46 -46
- package/compiled/less-loader/index.js +8 -8
- package/compiled/postcss-loader/index.js +37 -37
- package/compiled/sass-loader/index.js +10 -8
- package/compiled/sass-loader/package.json +1 -1
- package/compiled/style-loader/index.js +10 -10
- package/dist/bundler-config/chunkSplit.cjs +39 -3
- package/dist/bundler-config/chunkSplit.d.ts.map +1 -1
- package/dist/bundler-config/chunkSplit.js +39 -3
- package/dist/bundler-config/helper.cjs +2 -2
- package/dist/bundler-config/helper.js +1 -1
- package/dist/bundler-config/index.cjs +13 -7
- package/dist/bundler-config/index.d.ts.map +1 -1
- package/dist/bundler-config/index.js +16 -10
- package/dist/constants.cjs +4 -1
- package/dist/constants.d.ts +1 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +3 -1
- package/dist/createUnpack.cjs +6 -3
- package/dist/createUnpack.d.ts.map +1 -1
- package/dist/createUnpack.js +7 -4
- package/dist/index.cjs +3 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/plugin-progress/rspack.cjs +3 -1
- package/dist/plugin-progress/rspack.d.ts.map +1 -1
- package/dist/plugin-progress/rspack.js +3 -1
- package/dist/plugin-progress/webpack.cjs +3 -1
- package/dist/plugin-progress/webpack.d.ts.map +1 -1
- package/dist/plugin-progress/webpack.js +3 -1
- package/dist/prebundleDeps.cjs +340 -0
- package/dist/prebundleDeps.d.ts +5 -0
- package/dist/prebundleDeps.d.ts.map +1 -0
- package/dist/prebundleDeps.js +324 -0
- package/dist/run/dev.cjs +22 -39
- package/dist/run/dev.d.ts +1 -1
- package/dist/run/dev.d.ts.map +1 -1
- package/dist/run/dev.js +23 -40
- package/dist/thread-loader/worker.js +1 -1
- package/dist/typed-css-modules/plugin.cjs +2 -2
- package/dist/typed-css-modules/plugin.d.ts.map +1 -1
- package/dist/typed-css-modules/plugin.js +1 -1
- package/dist/types/chunkSplit.d.ts +1 -1
- package/dist/types/chunkSplit.d.ts.map +1 -1
- package/dist/types/config.d.ts +29 -6
- package/dist/types/config.d.ts.map +1 -1
- package/dist/utils.cjs +5 -10
- package/dist/utils.d.ts +2 -1
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +3 -8
- package/package.json +11 -18
- package/compiled/chokidar/index.d.ts +0 -327
- package/compiled/chokidar/index.js +0 -1773
- package/compiled/chokidar/license +0 -21
- package/compiled/chokidar/package.json +0 -1
- package/compiled/fast-glob/index.d.ts +0 -237
- package/compiled/fast-glob/index.js +0 -5726
- package/compiled/fast-glob/license +0 -21
- package/compiled/fast-glob/package.json +0 -1
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2012 Paul Miller (https://paulmillr.com), Elan Shanker
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the “Software”), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
|
13
|
-
all copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
-
THE SOFTWARE.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"name":"chokidar","author":"Paul Miller (https://paulmillr.com)","version":"4.0.1","funding":"https://paulmillr.com/funding/","license":"MIT","types":"index.d.ts","type":"commonjs"}
|
|
@@ -1,237 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import * as fs from 'fs';
|
|
3
|
-
|
|
4
|
-
declare type ErrnoException$1 = NodeJS.ErrnoException;
|
|
5
|
-
|
|
6
|
-
declare type StatAsynchronousMethod = (path: string, callback: (error: ErrnoException$1 | null, stats: fs.Stats) => void) => void;
|
|
7
|
-
declare type StatSynchronousMethod = (path: string) => fs.Stats;
|
|
8
|
-
interface FileSystemAdapter$2 {
|
|
9
|
-
lstat: StatAsynchronousMethod;
|
|
10
|
-
stat: StatAsynchronousMethod;
|
|
11
|
-
lstatSync: StatSynchronousMethod;
|
|
12
|
-
statSync: StatSynchronousMethod;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
interface Entry$2 {
|
|
16
|
-
dirent: Dirent;
|
|
17
|
-
name: string;
|
|
18
|
-
path: string;
|
|
19
|
-
stats?: Stats;
|
|
20
|
-
}
|
|
21
|
-
declare type Stats = fs.Stats;
|
|
22
|
-
declare type ErrnoException = NodeJS.ErrnoException;
|
|
23
|
-
interface Dirent {
|
|
24
|
-
isBlockDevice: () => boolean;
|
|
25
|
-
isCharacterDevice: () => boolean;
|
|
26
|
-
isDirectory: () => boolean;
|
|
27
|
-
isFIFO: () => boolean;
|
|
28
|
-
isFile: () => boolean;
|
|
29
|
-
isSocket: () => boolean;
|
|
30
|
-
isSymbolicLink: () => boolean;
|
|
31
|
-
name: string;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
interface ReaddirAsynchronousMethod {
|
|
35
|
-
(filepath: string, options: {
|
|
36
|
-
withFileTypes: true;
|
|
37
|
-
}, callback: (error: ErrnoException | null, files: Dirent[]) => void): void;
|
|
38
|
-
(filepath: string, callback: (error: ErrnoException | null, files: string[]) => void): void;
|
|
39
|
-
}
|
|
40
|
-
interface ReaddirSynchronousMethod {
|
|
41
|
-
(filepath: string, options: {
|
|
42
|
-
withFileTypes: true;
|
|
43
|
-
}): Dirent[];
|
|
44
|
-
(filepath: string): string[];
|
|
45
|
-
}
|
|
46
|
-
declare type FileSystemAdapter$1 = FileSystemAdapter$2 & {
|
|
47
|
-
readdir: ReaddirAsynchronousMethod;
|
|
48
|
-
readdirSync: ReaddirSynchronousMethod;
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
declare type Entry$1 = Entry$2;
|
|
52
|
-
|
|
53
|
-
type Entry = Entry$1;
|
|
54
|
-
type Pattern = string;
|
|
55
|
-
type FileSystemAdapter = FileSystemAdapter$1;
|
|
56
|
-
|
|
57
|
-
type Options = {
|
|
58
|
-
/**
|
|
59
|
-
* Return the absolute path for entries.
|
|
60
|
-
*
|
|
61
|
-
* @default false
|
|
62
|
-
*/
|
|
63
|
-
absolute?: boolean;
|
|
64
|
-
/**
|
|
65
|
-
* If set to `true`, then patterns without slashes will be matched against
|
|
66
|
-
* the basename of the path if it contains slashes.
|
|
67
|
-
*
|
|
68
|
-
* @default false
|
|
69
|
-
*/
|
|
70
|
-
baseNameMatch?: boolean;
|
|
71
|
-
/**
|
|
72
|
-
* Enables Bash-like brace expansion.
|
|
73
|
-
*
|
|
74
|
-
* @default true
|
|
75
|
-
*/
|
|
76
|
-
braceExpansion?: boolean;
|
|
77
|
-
/**
|
|
78
|
-
* Enables a case-sensitive mode for matching files.
|
|
79
|
-
*
|
|
80
|
-
* @default true
|
|
81
|
-
*/
|
|
82
|
-
caseSensitiveMatch?: boolean;
|
|
83
|
-
/**
|
|
84
|
-
* Specifies the maximum number of concurrent requests from a reader to read
|
|
85
|
-
* directories.
|
|
86
|
-
*
|
|
87
|
-
* @default os.cpus().length
|
|
88
|
-
*/
|
|
89
|
-
concurrency?: number;
|
|
90
|
-
/**
|
|
91
|
-
* The current working directory in which to search.
|
|
92
|
-
*
|
|
93
|
-
* @default process.cwd()
|
|
94
|
-
*/
|
|
95
|
-
cwd?: string;
|
|
96
|
-
/**
|
|
97
|
-
* Specifies the maximum depth of a read directory relative to the start
|
|
98
|
-
* directory.
|
|
99
|
-
*
|
|
100
|
-
* @default Infinity
|
|
101
|
-
*/
|
|
102
|
-
deep?: number;
|
|
103
|
-
/**
|
|
104
|
-
* Allow patterns to match entries that begin with a period (`.`).
|
|
105
|
-
*
|
|
106
|
-
* @default false
|
|
107
|
-
*/
|
|
108
|
-
dot?: boolean;
|
|
109
|
-
/**
|
|
110
|
-
* Enables Bash-like `extglob` functionality.
|
|
111
|
-
*
|
|
112
|
-
* @default true
|
|
113
|
-
*/
|
|
114
|
-
extglob?: boolean;
|
|
115
|
-
/**
|
|
116
|
-
* Indicates whether to traverse descendants of symbolic link directories.
|
|
117
|
-
*
|
|
118
|
-
* @default true
|
|
119
|
-
*/
|
|
120
|
-
followSymbolicLinks?: boolean;
|
|
121
|
-
/**
|
|
122
|
-
* Custom implementation of methods for working with the file system.
|
|
123
|
-
*
|
|
124
|
-
* @default fs.*
|
|
125
|
-
*/
|
|
126
|
-
fs?: Partial<FileSystemAdapter>;
|
|
127
|
-
/**
|
|
128
|
-
* Enables recursively repeats a pattern containing `**`.
|
|
129
|
-
* If `false`, `**` behaves exactly like `*`.
|
|
130
|
-
*
|
|
131
|
-
* @default true
|
|
132
|
-
*/
|
|
133
|
-
globstar?: boolean;
|
|
134
|
-
/**
|
|
135
|
-
* An array of glob patterns to exclude matches.
|
|
136
|
-
* This is an alternative way to use negative patterns.
|
|
137
|
-
*
|
|
138
|
-
* @default []
|
|
139
|
-
*/
|
|
140
|
-
ignore?: Pattern[];
|
|
141
|
-
/**
|
|
142
|
-
* Mark the directory path with the final slash.
|
|
143
|
-
*
|
|
144
|
-
* @default false
|
|
145
|
-
*/
|
|
146
|
-
markDirectories?: boolean;
|
|
147
|
-
/**
|
|
148
|
-
* Returns objects (instead of strings) describing entries.
|
|
149
|
-
*
|
|
150
|
-
* @default false
|
|
151
|
-
*/
|
|
152
|
-
objectMode?: boolean;
|
|
153
|
-
/**
|
|
154
|
-
* Return only directories.
|
|
155
|
-
*
|
|
156
|
-
* @default false
|
|
157
|
-
*/
|
|
158
|
-
onlyDirectories?: boolean;
|
|
159
|
-
/**
|
|
160
|
-
* Return only files.
|
|
161
|
-
*
|
|
162
|
-
* @default true
|
|
163
|
-
*/
|
|
164
|
-
onlyFiles?: boolean;
|
|
165
|
-
/**
|
|
166
|
-
* Enables an object mode (`objectMode`) with an additional `stats` field.
|
|
167
|
-
*
|
|
168
|
-
* @default false
|
|
169
|
-
*/
|
|
170
|
-
stats?: boolean;
|
|
171
|
-
/**
|
|
172
|
-
* By default this package suppress only `ENOENT` errors.
|
|
173
|
-
* Set to `true` to suppress any error.
|
|
174
|
-
*
|
|
175
|
-
* @default false
|
|
176
|
-
*/
|
|
177
|
-
suppressErrors?: boolean;
|
|
178
|
-
/**
|
|
179
|
-
* Throw an error when symbolic link is broken if `true` or safely
|
|
180
|
-
* return `lstat` call if `false`.
|
|
181
|
-
*
|
|
182
|
-
* @default false
|
|
183
|
-
*/
|
|
184
|
-
throwErrorOnBrokenSymbolicLink?: boolean;
|
|
185
|
-
/**
|
|
186
|
-
* Ensures that the returned entries are unique.
|
|
187
|
-
*
|
|
188
|
-
* @default true
|
|
189
|
-
*/
|
|
190
|
-
unique?: boolean;
|
|
191
|
-
};
|
|
192
|
-
|
|
193
|
-
type Task = {
|
|
194
|
-
base: string;
|
|
195
|
-
dynamic: boolean;
|
|
196
|
-
patterns: Pattern[];
|
|
197
|
-
positive: Pattern[];
|
|
198
|
-
negative: Pattern[];
|
|
199
|
-
};
|
|
200
|
-
|
|
201
|
-
type EntryObjectModePredicate = {
|
|
202
|
-
[TKey in keyof Pick<Options, 'objectMode'>]-?: true;
|
|
203
|
-
};
|
|
204
|
-
type EntryStatsPredicate = {
|
|
205
|
-
[TKey in keyof Pick<Options, 'stats'>]-?: true;
|
|
206
|
-
};
|
|
207
|
-
type EntryObjectPredicate = EntryObjectModePredicate | EntryStatsPredicate;
|
|
208
|
-
declare function FastGlob(source: Pattern | Pattern[], options: Options & EntryObjectPredicate): Promise<Entry[]>;
|
|
209
|
-
declare function FastGlob(source: Pattern | Pattern[], options?: Options): Promise<string[]>;
|
|
210
|
-
declare namespace FastGlob {
|
|
211
|
-
type Options = Options;
|
|
212
|
-
type Entry = Entry;
|
|
213
|
-
type Task = Task;
|
|
214
|
-
type Pattern = Pattern;
|
|
215
|
-
type FileSystemAdapter = FileSystemAdapter;
|
|
216
|
-
const glob: typeof FastGlob;
|
|
217
|
-
const globSync: typeof sync;
|
|
218
|
-
const globStream: typeof stream;
|
|
219
|
-
const async: typeof FastGlob;
|
|
220
|
-
function sync(source: Pattern | Pattern[], options: Options & EntryObjectPredicate): Entry[];
|
|
221
|
-
function sync(source: Pattern | Pattern[], options?: Options): string[];
|
|
222
|
-
function stream(source: Pattern | Pattern[], options?: Options): NodeJS.ReadableStream;
|
|
223
|
-
function generateTasks(source: Pattern | Pattern[], options?: Options): Task[];
|
|
224
|
-
function isDynamicPattern(source: Pattern, options?: Options): boolean;
|
|
225
|
-
function escapePath(source: string): Pattern;
|
|
226
|
-
function convertPathToPattern(source: string): Pattern;
|
|
227
|
-
namespace posix {
|
|
228
|
-
function escapePath(source: string): Pattern;
|
|
229
|
-
function convertPathToPattern(source: string): Pattern;
|
|
230
|
-
}
|
|
231
|
-
namespace win32 {
|
|
232
|
-
function escapePath(source: string): Pattern;
|
|
233
|
-
function convertPathToPattern(source: string): Pattern;
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
export { FastGlob as default };
|