@ohos-ports/rspack-core 2.2.2-beta.0 → 2.3.2-beta.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 +9 -0
- package/compiled/@rspack/lite-tapable/dist/index.d.ts +20 -6
- package/compiled/@rspack/lite-tapable/package.json +1 -1
- package/compiled/http-proxy-middleware/index.d.ts +10 -10
- package/compiled/http-proxy-middleware/package.json +1 -1
- package/compiled/open/package.json +1 -1
- package/compiled/tinypool/README.md +4 -4
- package/compiled/tinypool/dist/index.d.ts +3 -2
- package/compiled/tinypool/dist/index.js +3 -3
- package/compiled/tinypool/package.json +1 -1
- package/compiled/watchpack/index.js +276 -49
- package/compiled/watchpack/package.json +1 -1
- package/compiled/watchpack/types/DirectoryWatcher.d.ts +24 -0
- package/compiled/watchpack/types/index.d.ts +1 -1
- package/compiled/watchpack/types/watchEventSource.d.ts +9 -0
- package/compiled/webpack-sources/index.d.ts +61 -0
- package/compiled/webpack-sources/index.js +858 -224
- package/compiled/webpack-sources/package.json +8 -1
- package/compiled/webpack-sources/types/CachedSource.d.ts +192 -0
- package/compiled/webpack-sources/types/CompatSource.d.ts +87 -0
- package/compiled/webpack-sources/types/ConcatSource.d.ts +75 -0
- package/compiled/webpack-sources/types/OriginalSource.d.ts +87 -0
- package/compiled/webpack-sources/types/PrefixSource.d.ts +59 -0
- package/compiled/webpack-sources/types/RawSource.d.ts +75 -0
- package/compiled/webpack-sources/types/ReplaceSource.d.ts +107 -0
- package/compiled/webpack-sources/types/SizeOnlySource.d.ts +24 -0
- package/compiled/webpack-sources/types/Source.d.ts +189 -0
- package/compiled/webpack-sources/types/SourceMapSource.d.ts +136 -0
- package/compiled/webpack-sources/types/helpers/createMappingsSerializer.d.ts +60 -0
- package/compiled/webpack-sources/types/helpers/getFromStreamChunks.d.ts +16 -0
- package/compiled/webpack-sources/types/helpers/getGeneratedSourceInfo.d.ts +31 -0
- package/compiled/webpack-sources/types/helpers/getName.d.ts +15 -0
- package/compiled/webpack-sources/types/helpers/getSource.d.ts +15 -0
- package/compiled/webpack-sources/types/helpers/readMappings.d.ts +19 -0
- package/compiled/webpack-sources/types/helpers/scopes.d.ts +119 -0
- package/compiled/webpack-sources/types/helpers/splitIntoLines.d.ts +6 -0
- package/compiled/webpack-sources/types/helpers/splitIntoPotentialTokens.d.ts +37 -0
- package/compiled/webpack-sources/types/helpers/streamAndGetSourceAndMap.d.ts +39 -0
- package/compiled/webpack-sources/types/helpers/streamChunks.d.ts +56 -0
- package/compiled/webpack-sources/types/helpers/streamChunksOfCombinedSourceMap.d.ts +42 -0
- package/compiled/webpack-sources/types/helpers/streamChunksOfRawSource.d.ts +16 -0
- package/compiled/webpack-sources/types/helpers/streamChunksOfSourceMap.d.ts +19 -0
- package/compiled/webpack-sources/types/helpers/stringBufferUtils.d.ts +55 -0
- package/compiled/webpack-sources/types/index.d.ts +50 -0
- package/dist/BuildInfo.d.ts +13 -4
- package/dist/Chunk.d.ts +3 -3
- package/dist/ChunkGraph.d.ts +2 -2
- package/dist/Chunks.d.ts +2 -2
- package/dist/CodeGenerationResults.d.ts +6 -1
- package/dist/Compilation.d.ts +16 -53
- package/dist/Compiler.d.ts +9 -10
- package/dist/ConcatenatedModule.d.ts +5 -1
- package/dist/ContextModule.d.ts +3 -1
- package/dist/Diagnostics.d.ts +2 -6
- package/dist/Entrypoint.d.ts +1 -1
- package/dist/ExportsInfo.d.ts +1 -1
- package/dist/ExternalModule.d.ts +7 -6
- package/dist/FileSystem.d.ts +3 -1
- package/dist/FileSystemDependencies.d.ts +15 -0
- package/dist/FileSystemInfo.d.ts +1 -0
- package/dist/Module.d.ts +19 -11
- package/dist/ModuleGraph.d.ts +6 -6
- package/dist/ModuleGraphConnection.d.ts +9 -3
- package/dist/Modules.d.ts +3 -0
- package/dist/NativeWatchFileSystem.d.ts +20 -8
- package/dist/NormalModule.d.ts +14 -6
- package/dist/NormalModuleFactory.d.ts +2 -1
- package/dist/Resolver.d.ts +10 -2
- package/dist/ResolverFactory.d.ts +1 -1
- package/dist/RspackError.d.ts +2 -2
- package/dist/RuntimeGlobals.d.ts +4 -3
- package/dist/RuntimeModule.d.ts +1 -1
- package/dist/RuntimeTemplate.d.ts +1 -0
- package/dist/Stats.d.ts +1 -1
- package/dist/builtin-loader/lightningcss/target.d.ts +1 -1
- package/dist/builtin-plugin/APIPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ArrayPushCallbackChunkFormatPlugin.d.ts +1 -1
- package/dist/builtin-plugin/AssetModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/AsyncWebAssemblyModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/BannerPlugin.d.ts +2 -2
- package/dist/builtin-plugin/BundlerInfoRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CaseSensitivePlugin.d.ts +1 -1
- package/dist/builtin-plugin/ChunkPrefetchPreloadPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CircularCheckRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CircularDependencyRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CircularModulesInfoPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CommonJsChunkFormatPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CompactHashedChunkIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CompactHashedModuleIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ContextReplacementPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CopyRspackPlugin.d.ts +2 -2
- package/dist/builtin-plugin/CssChunkingPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CssHttpExternalsRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/CssModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DataUriPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DefinePlugin.d.ts +1 -1
- package/dist/builtin-plugin/DeterministicChunkIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DeterministicModuleIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DllEntryPlugin.d.ts +1 -1
- package/dist/builtin-plugin/DllReferenceAgencyPlugin.d.ts +2 -2
- package/dist/builtin-plugin/DynamicEntryPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ElectronTargetPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EnableChunkLoadingPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EnableLibraryPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EnableWasmLoadingPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EnsureChunkConditionsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EntryPlugin.d.ts +2 -2
- package/dist/builtin-plugin/EsmNodeTargetPlugin.d.ts +1 -1
- package/dist/builtin-plugin/EvalDevToolModulePlugin.d.ts +2 -2
- package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.d.ts +5 -4
- package/dist/builtin-plugin/ExternalsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FetchCompileAsyncWasmPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FileUriPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FlagAllModulesAsUsedPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FlagDependencyExportsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/FlagDependencyUsagePlugin.d.ts +1 -1
- package/dist/builtin-plugin/HashedModuleIdsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/HotModuleReplacementPlugin.d.ts +1 -1
- package/dist/builtin-plugin/HttpExternalsRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/HttpUriPlugin.d.ts +5 -1
- package/dist/builtin-plugin/IgnorePlugin.d.ts +2 -2
- package/dist/builtin-plugin/ImportedByDeferModulesPlugin.d.ts +9 -0
- package/dist/builtin-plugin/InferAsyncModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/InlineExportsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/JavascriptModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/JsLoaderRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/JsonModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/LibManifestPlugin.d.ts +1 -1
- package/dist/builtin-plugin/LightningCssMinimizerRspackPlugin.d.ts +1 -1
- package/dist/builtin-plugin/LimitChunkCountPlugin.d.ts +1 -1
- package/dist/builtin-plugin/MangleExportsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/MergeDuplicateChunksPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ModuleChunkFormatPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ModuleConcatenationPlugin.d.ts +1 -1
- package/dist/builtin-plugin/ModuleInfoHeaderPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NamedChunkIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NamedModuleIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NaturalChunkIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NaturalModuleIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NoEmitOnErrorsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NodeTargetPlugin.d.ts +1 -1
- package/dist/builtin-plugin/NormalModuleReplacementPlugin.d.ts +1 -1
- package/dist/builtin-plugin/OccurrenceChunkIdsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/ProgressPlugin.d.ts +2 -2
- package/dist/builtin-plugin/ProvidePlugin.d.ts +1 -1
- package/dist/builtin-plugin/RealContentHashPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RemoveDuplicateModulesPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RemoveEmptyChunksPlugin.d.ts +1 -1
- package/dist/builtin-plugin/RsdoctorPlugin.d.ts +2 -2
- package/dist/builtin-plugin/RslibPlugin.d.ts +4 -4
- package/dist/builtin-plugin/RstestPlugin.d.ts +2 -2
- package/dist/builtin-plugin/RuntimeChunkPlugin.d.ts +2 -2
- package/dist/builtin-plugin/RuntimePlugin.d.ts +1 -1
- package/dist/builtin-plugin/SideEffectsFlagPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SizeLimitsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SourceMapDevToolPlugin.d.ts +2 -2
- package/dist/builtin-plugin/SplitChunksPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SubresourceIntegrityPlugin.d.ts +3 -2
- package/dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts +1 -1
- package/dist/builtin-plugin/SyncModuleIdsPlugin.d.ts +1 -1
- package/dist/builtin-plugin/URLPlugin.d.ts +1 -1
- package/dist/builtin-plugin/WorkerPlugin.d.ts +1 -1
- package/dist/builtin-plugin/base.d.ts +1 -1
- package/dist/builtin-plugin/css-extract/index.d.ts +1 -1
- package/dist/builtin-plugin/css-extract/utils.d.ts +4 -1
- package/dist/builtin-plugin/html-plugin/hooks.d.ts +1 -1
- package/dist/builtin-plugin/html-plugin/plugin.d.ts +2 -2
- package/dist/builtin-plugin/index.d.ts +1 -0
- package/dist/builtin-plugin/lazy-compilation/lazyCompilation.d.ts +3 -3
- package/dist/builtin-plugin/rsc/RscClientPlugin.d.ts +1 -1
- package/dist/builtin-plugin/rsc/RscServerPlugin.d.ts +1 -1
- package/dist/config/adapter.d.ts +1 -1
- package/dist/config/adapterRuleUse.d.ts +3 -2
- package/dist/config/normalization.d.ts +5 -8
- package/dist/config/target.d.ts +2 -0
- package/dist/config/types.d.ts +104 -19
- package/dist/container/ContainerPlugin.d.ts +1 -1
- package/dist/container/ContainerReferencePlugin.d.ts +1 -1
- package/dist/container/ModuleFederationManifestPlugin.d.ts +1 -1
- package/dist/container/ModuleFederationPluginV1.d.ts +5 -1
- package/dist/container/ModuleFederationRuntimePlugin.d.ts +1 -1
- package/dist/cssExtractHmr.js +1 -1
- package/dist/cssExtractLoader.js +7 -5
- package/dist/exports.d.ts +7 -7
- package/dist/index.js +1845 -1070
- package/dist/lib/Cache.d.ts +3 -0
- package/dist/lib/DllReferencePlugin.d.ts +1 -1
- package/dist/lib/WebpackError.d.ts +1 -1
- package/dist/loader-runner/codeFilter.d.ts +9 -0
- package/dist/loader-runner/dependencies.d.ts +5 -4
- package/dist/loader-runner/index.d.ts +3 -2
- package/dist/loader-runner/service.d.ts +6 -5
- package/dist/loader-runner/worker.d.ts +5 -2
- package/dist/l~0.js +34 -0
- package/dist/l~3.js +34 -0
- package/dist/node/NodeWatchFileSystem.d.ts +7 -4
- package/dist/sharing/CollectSharedEntryPlugin.d.ts +1 -1
- package/dist/sharing/ConsumeSharedPlugin.d.ts +1 -1
- package/dist/sharing/ProvideSharedPlugin.d.ts +1 -1
- package/dist/sharing/SharePlugin.d.ts +13 -1
- package/dist/sharing/ShareRuntimePlugin.d.ts +1 -1
- package/dist/sharing/SharedContainerPlugin.d.ts +1 -1
- package/dist/sharing/SharedUsedExportsOptimizerPlugin.d.ts +2 -2
- package/dist/sources.d.ts +3 -0
- package/dist/stats/StatsFactory.d.ts +4 -2
- package/dist/stats/StatsPrinter.d.ts +5 -5
- package/dist/stats/statsFactoryUtils.d.ts +12 -6
- package/dist/swc.d.ts +1 -1
- package/dist/taps/compilation.d.ts +1 -1
- package/dist/taps/types.d.ts +1 -1
- package/dist/util/SplitChunkSize.d.ts +1 -1
- package/dist/util/bindingHelpers.d.ts +9 -0
- package/dist/util/createModule.d.ts +3 -0
- package/dist/util/fs.d.ts +22 -16
- package/dist/util/resolveLayerExternals.d.ts +1 -0
- package/dist/util/source.d.ts +13 -4
- package/dist/util/symbols.d.ts +10 -0
- package/dist/util/watchTimeInfo.d.ts +11 -0
- package/dist/worker.js +386 -353
- package/hot/lazy-compilation-node.js +1 -1
- package/hot/lazy-compilation-web.js +1 -1
- package/package.json +8 -32
- package/compiled/webpack-sources/types.d.ts +0 -500
- package/dist/612~0.js +0 -32
- package/dist/612~3.js +0 -32
- package/dist/loader-runner/cache.d.ts +0 -18
- package/dist/util/MergeCaller.d.ts +0 -10
- package/dist/util/fake.d.ts +0 -11
|
@@ -46,8 +46,12 @@ declare class DirectoryWatcher extends EventEmitter<{
|
|
|
46
46
|
files: Map<string, Entry>;
|
|
47
47
|
/** @type {Map<string, number>} */
|
|
48
48
|
filesWithoutCase: Map<string, number>;
|
|
49
|
+
/** @type {boolean | undefined} */
|
|
50
|
+
caseInsensitive: boolean | undefined;
|
|
49
51
|
/** @type {Map<string, Watcher<DirectoryWatcherEvents> | boolean>} */
|
|
50
52
|
directories: Map<string, Watcher<DirectoryWatcherEvents> | boolean>;
|
|
53
|
+
/** @type {Map<string, number>} */
|
|
54
|
+
directorySafeTimes: Map<string, number>;
|
|
51
55
|
/** @type {Map<string, Watcher<FileWatcherEvents>>} */
|
|
52
56
|
_symlinkTargetWatchers: Map<string, Watcher<FileWatcherEvents>>;
|
|
53
57
|
lastWatchEvent: number;
|
|
@@ -62,6 +66,8 @@ declare class DirectoryWatcher extends EventEmitter<{
|
|
|
62
66
|
initialScanRemoved: null | InitialScanRemoved;
|
|
63
67
|
/** @type {undefined | number} */
|
|
64
68
|
initialScanFinished: undefined | number;
|
|
69
|
+
/** @type {Map<string, number>} */
|
|
70
|
+
removedTimes: Map<string, number>;
|
|
65
71
|
/** @type {Map<string, Set<Watcher<DirectoryWatcherEvents> | Watcher<FileWatcherEvents>>>} */
|
|
66
72
|
watchers: Map<
|
|
67
73
|
string,
|
|
@@ -69,6 +75,8 @@ declare class DirectoryWatcher extends EventEmitter<{
|
|
|
69
75
|
>;
|
|
70
76
|
/** @type {Watcher<FileWatcherEvents> | null} */
|
|
71
77
|
parentWatcher: Watcher<FileWatcherEvents> | null;
|
|
78
|
+
/** @type {undefined | NodeJS.Timeout} */
|
|
79
|
+
retryTimeout: undefined | NodeJS.Timeout;
|
|
72
80
|
refs: number;
|
|
73
81
|
/** @type {Map<string, boolean>} */
|
|
74
82
|
_activeEvents: Map<string, boolean>;
|
|
@@ -145,6 +153,11 @@ declare class DirectoryWatcher extends EventEmitter<{
|
|
|
145
153
|
* @param {unknown=} err error
|
|
146
154
|
*/
|
|
147
155
|
onWatcherError(err?: unknown | undefined): void;
|
|
156
|
+
/**
|
|
157
|
+
* Polls the directory, which still exists, when the OS cannot watch it.
|
|
158
|
+
* @param {unknown} err watcher limit error
|
|
159
|
+
*/
|
|
160
|
+
pollAfterWatcherLimit(err: unknown): void;
|
|
148
161
|
/**
|
|
149
162
|
* @param {Error | NodeJS.ErrnoException=} err error
|
|
150
163
|
*/
|
|
@@ -158,6 +171,12 @@ declare class DirectoryWatcher extends EventEmitter<{
|
|
|
158
171
|
* @param {string} reason a reason
|
|
159
172
|
*/
|
|
160
173
|
onDirectoryRemoved(reason: string): void;
|
|
174
|
+
/**
|
|
175
|
+
* Creates the watcher once the parent directory reports this path.
|
|
176
|
+
* @param {number} mtime mtime
|
|
177
|
+
* @param {EventType} type type
|
|
178
|
+
*/
|
|
179
|
+
retryWatcher(mtime: number, type: EventType): void;
|
|
161
180
|
watchInParentDirectory(): void;
|
|
162
181
|
/**
|
|
163
182
|
* @param {boolean} initial true when initial, otherwise false
|
|
@@ -176,6 +195,11 @@ declare class DirectoryWatcher extends EventEmitter<{
|
|
|
176
195
|
fileTimestamps: TimeInfoEntries,
|
|
177
196
|
directoryTimestamps: TimeInfoEntries,
|
|
178
197
|
): number;
|
|
198
|
+
/**
|
|
199
|
+
* @param {string} target a watched path that is not in `files`
|
|
200
|
+
* @returns {string | undefined} the file it names on a case-insensitive file system
|
|
201
|
+
*/
|
|
202
|
+
getFileWithOtherCase(target: string): string | undefined;
|
|
179
203
|
close(): void;
|
|
180
204
|
}
|
|
181
205
|
declare namespace DirectoryWatcher {
|
|
@@ -35,7 +35,7 @@ type FileWatcherEvents = import("./DirectoryWatcher").FileWatcherEvents;
|
|
|
35
35
|
type EventMap = Record<string, (...args: any[]) => any>;
|
|
36
36
|
type Watcher<T extends EventMap> = import("./DirectoryWatcher").Watcher<T>;
|
|
37
37
|
type IgnoredFunction = (item: string) => boolean;
|
|
38
|
-
type Ignored = string[] | RegExp | string | IgnoredFunction;
|
|
38
|
+
type Ignored = (string | RegExp)[] | RegExp | string | IgnoredFunction;
|
|
39
39
|
type WatcherOptions = {
|
|
40
40
|
/**
|
|
41
41
|
* true when need to resolve symlinks and watch symlink and real file, otherwise false
|
|
@@ -13,11 +13,16 @@ export type WatcherEvents = {
|
|
|
13
13
|
* error event
|
|
14
14
|
*/
|
|
15
15
|
error: (err: unknown) => void;
|
|
16
|
+
/**
|
|
17
|
+
* rescan event, when events may have been lost
|
|
18
|
+
*/
|
|
19
|
+
rescan: () => void;
|
|
16
20
|
};
|
|
17
21
|
/**
|
|
18
22
|
* @typedef {object} WatcherEvents
|
|
19
23
|
* @property {(eventType: EventType, filename?: string) => void} change change event
|
|
20
24
|
* @property {(err: unknown) => void} error error event
|
|
25
|
+
* @property {() => void} rescan rescan event, when events may have been lost
|
|
21
26
|
*/
|
|
22
27
|
/**
|
|
23
28
|
* @extends {EventEmitter<{ [K in keyof WatcherEvents]: Parameters<WatcherEvents[K]> }>}
|
|
@@ -34,6 +39,10 @@ export class Watcher extends EventEmitter<{
|
|
|
34
39
|
* error event
|
|
35
40
|
*/
|
|
36
41
|
error: [err: unknown];
|
|
42
|
+
/**
|
|
43
|
+
* rescan event, when events may have been lost
|
|
44
|
+
*/
|
|
45
|
+
rescan: [];
|
|
37
46
|
}> {
|
|
38
47
|
constructor();
|
|
39
48
|
close(): void;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Public type entry point of `webpack-sources`.
|
|
3
|
+
*
|
|
4
|
+
* The declarations under `types/` are generated from the JSDoc in `lib/` by
|
|
5
|
+
* `npm run build:types`; don't edit them by hand. This file re-exports them in
|
|
6
|
+
* the package's public shape: every class is available as both a value and a
|
|
7
|
+
* type, next to the public helper types.
|
|
8
|
+
*
|
|
9
|
+
* TODO: remove this file in the next major release and point `types` in
|
|
10
|
+
* `package.json` at the generated `types/index.d.ts`. That requires the
|
|
11
|
+
* exports in `lib/index.js` to be typed so the classes are exported as types
|
|
12
|
+
* too (e.g. `Source` usable in `let source: Source`), which is a breaking
|
|
13
|
+
* change for the shape of the public types.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
import CachedSource = require("./types/CachedSource");
|
|
17
|
+
import CompatSource = require("./types/CompatSource");
|
|
18
|
+
import ConcatSource = require("./types/ConcatSource");
|
|
19
|
+
import OriginalSource = require("./types/OriginalSource");
|
|
20
|
+
import PrefixSource = require("./types/PrefixSource");
|
|
21
|
+
import RawSource = require("./types/RawSource");
|
|
22
|
+
import ReplaceSource = require("./types/ReplaceSource");
|
|
23
|
+
import SizeOnlySource = require("./types/SizeOnlySource");
|
|
24
|
+
import Source = require("./types/Source");
|
|
25
|
+
import SourceMapSource = require("./types/SourceMapSource");
|
|
26
|
+
import GetGeneratedSourceInfo = require("./types/helpers/getGeneratedSourceInfo");
|
|
27
|
+
import Scopes = require("./types/helpers/scopes");
|
|
28
|
+
import StreamChunks = require("./types/helpers/streamChunks");
|
|
29
|
+
import StringBufferUtils = require("./types/helpers/stringBufferUtils");
|
|
30
|
+
|
|
31
|
+
export namespace util {
|
|
32
|
+
export import scopes = Scopes;
|
|
33
|
+
export import stringBufferUtils = StringBufferUtils;
|
|
34
|
+
}
|
|
35
|
+
export type OnChunk = StreamChunks.OnChunk;
|
|
36
|
+
export type OnName = StreamChunks.OnName;
|
|
37
|
+
export type OnSource = StreamChunks.OnSource;
|
|
38
|
+
export type CachedData = CachedSource.CachedData;
|
|
39
|
+
export type SourceLike = CompatSource.SourceLike;
|
|
40
|
+
export type ConcatSourceChild = ConcatSource.Child;
|
|
41
|
+
export import Replacement = ReplaceSource.Replacement;
|
|
42
|
+
export type HashLike = Source.HashLike;
|
|
43
|
+
export type MapOptions = Source.MapOptions;
|
|
44
|
+
export type RawSourceMap = Source.RawSourceMap;
|
|
45
|
+
export type SourceAndMap = Source.SourceAndMap;
|
|
46
|
+
export type SourceValue = Source.SourceValue;
|
|
47
|
+
export type GeneratedSourceInfo = GetGeneratedSourceInfo.GeneratedSourceInfo;
|
|
48
|
+
export type StreamChunksOptions = StreamChunks.Options;
|
|
49
|
+
export {
|
|
50
|
+
Source,
|
|
51
|
+
RawSource,
|
|
52
|
+
OriginalSource,
|
|
53
|
+
SourceMapSource,
|
|
54
|
+
CachedSource,
|
|
55
|
+
ConcatSource,
|
|
56
|
+
ReplaceSource,
|
|
57
|
+
PrefixSource,
|
|
58
|
+
SizeOnlySource,
|
|
59
|
+
CompatSource,
|
|
60
|
+
};
|
|
61
|
+
|