@umijs/bundler-webpack 4.0.0-beta.1 → 4.0.0-beta.13
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/autoprefixer/browserslist/index.d.ts +7 -7
- package/compiled/autoprefixer/index.js +3 -3
- package/compiled/autoprefixer/postcss/lib/container.d.ts +2 -2
- package/compiled/autoprefixer/postcss/lib/css-syntax-error.d.ts +55 -8
- package/compiled/autoprefixer/postcss/lib/input.d.ts +26 -6
- package/compiled/autoprefixer/postcss/lib/lazy-result.d.ts +11 -10
- package/compiled/autoprefixer/postcss/lib/no-work-result.d.ts +37 -0
- package/compiled/autoprefixer/postcss/lib/node.d.ts +36 -2
- package/compiled/autoprefixer/postcss/lib/postcss.d.ts +31 -30
- package/compiled/autoprefixer/postcss/lib/processor.d.ts +5 -4
- package/compiled/autoprefixer/postcss/lib/result.d.ts +3 -2
- package/compiled/autoprefixer/postcss/lib/warning.d.ts +37 -3
- package/compiled/babel-loader/index.js +2 -2
- package/compiled/mini-css-extract-plugin/index.js +6769 -6731
- package/compiled/mini-css-extract-plugin/loader.js +1 -1
- package/compiled/mini-css-extract-plugin/utils.js +11 -6
- package/compiled/postcss-loader/index.js +1 -1
- package/compiled/react-refresh/index.js +3 -3
- package/compiled/sass-loader/index.js +1 -1
- package/compiled/schema-utils/ajv/dist/ajv.d.ts +16 -0
- package/compiled/schema-utils/ajv/dist/compile/codegen/code.d.ts +39 -0
- package/compiled/schema-utils/ajv/dist/compile/codegen/index.d.ts +79 -0
- package/compiled/schema-utils/ajv/dist/compile/codegen/scope.d.ts +79 -0
- package/compiled/schema-utils/ajv/dist/compile/errors.d.ts +13 -0
- package/compiled/schema-utils/ajv/dist/compile/index.d.ts +80 -0
- package/compiled/schema-utils/ajv/dist/compile/ref_error.d.ts +5 -0
- package/compiled/schema-utils/ajv/dist/compile/resolve.d.ts +12 -0
- package/compiled/schema-utils/ajv/dist/compile/rules.d.ts +28 -0
- package/compiled/schema-utils/ajv/dist/compile/util.d.ts +40 -0
- package/compiled/schema-utils/ajv/dist/compile/validate/index.d.ts +42 -0
- package/compiled/schema-utils/ajv/dist/compile/validate/subschema.d.ts +47 -0
- package/compiled/schema-utils/ajv/dist/core.d.ts +171 -0
- package/compiled/schema-utils/ajv/dist/runtime/validation_error.d.ts +7 -0
- package/compiled/schema-utils/ajv/dist/types/index.d.ts +177 -0
- package/compiled/schema-utils/ajv/dist/types/json-schema.d.ts +124 -0
- package/compiled/schema-utils/ajv/dist/types/jtd-schema.d.ts +168 -0
- package/compiled/schema-utils/declarations/validate.d.ts +4 -4
- package/compiled/schema-utils/index.js +8 -2
- package/compiled/schema-utils/uri-js/dist/es5/uri.all.d.ts +59 -0
- package/compiled/style-loader/index.js +1 -1
- package/compiled/terser/index.js +1 -1
- package/compiled/terser-webpack-plugin/index.js +328 -451
- package/compiled/terser-webpack-plugin/jest-worker/build/types.d.ts +1 -0
- package/compiled/terser-webpack-plugin/minify.js +6 -1
- package/compiled/terser-webpack-plugin/types/index.d.ts +3 -3
- package/compiled/terser-webpack-plugin/types/utils.d.ts +9 -12
- package/compiled/terser-webpack-plugin/utils.js +113 -17
- package/compiled/webpack/index.js +5088 -4524
- package/compiled/webpack/lazy-compilation-node.js +3 -1
- package/compiled/webpack/package.json +5 -1
- package/compiled/webpack/types.d.ts +40 -9
- package/compiled/webpack-dev-middleware/index.js +11 -5
- package/compiled/webpack-sources/index.js +1 -1
- package/dist/build.d.ts +7 -0
- package/dist/build.js +11 -0
- package/dist/cli.js +0 -20
- package/dist/config/assetRules.js +2 -1
- package/dist/config/config.d.ts +4 -0
- package/dist/config/config.js +16 -1
- package/dist/config/cssRules.js +3 -3
- package/dist/config/javaScriptRules.d.ts +2 -0
- package/dist/config/javaScriptRules.js +8 -3
- package/dist/config/svgRules.d.ts +1 -0
- package/dist/config/svgRules.js +12 -11
- package/dist/dev.d.ts +6 -0
- package/dist/dev.js +23 -7
- package/dist/loader/svgr.d.ts +4 -0
- package/dist/loader/svgr.js +67 -0
- package/dist/schema.js +5 -1
- package/dist/server/server.js +11 -10
- package/dist/server/ws.d.ts +1 -1
- package/dist/server/ws.js +1 -1
- package/dist/swcPlugins/autoCSSModules.d.ts +8 -0
- package/dist/swcPlugins/autoCSSModules.js +35 -0
- package/dist/swcPlugins/lockCoreJS.d.ts +6 -0
- package/dist/swcPlugins/lockCoreJS.js +23 -0
- package/dist/types.d.ts +3 -0
- package/package.json +43 -43
- package/compiled/@svgr/webpack/.svgo.yml +0 -75
- package/compiled/@svgr/webpack/LICENSE +0 -7
- package/compiled/@svgr/webpack/index.js +0 -343
- package/compiled/@svgr/webpack/package.json +0 -1
|
@@ -9,7 +9,9 @@ exports.keepAlive = function (options) {
|
|
|
9
9
|
var active = options.active;
|
|
10
10
|
var module = options.module;
|
|
11
11
|
var response;
|
|
12
|
-
var request =
|
|
12
|
+
var request = (
|
|
13
|
+
urlBase.startsWith("https") ? require("https") : require("http")
|
|
14
|
+
).request(
|
|
13
15
|
urlBase + data,
|
|
14
16
|
{
|
|
15
17
|
agent: false,
|
|
@@ -80,6 +80,8 @@ import {
|
|
|
80
80
|
WithStatement,
|
|
81
81
|
YieldExpression
|
|
82
82
|
} from "estree";
|
|
83
|
+
import { ServerOptions as ServerOptionsImport } from 'http';
|
|
84
|
+
import { ListenOptions, Server } from 'net';
|
|
83
85
|
import { validate as validateFunction } from './schema-utils';
|
|
84
86
|
import { default as ValidationError } from './schema-utils/declarations/ValidationError';
|
|
85
87
|
import { ValidationErrorConfiguration } from './schema-utils/declarations/validate';
|
|
@@ -95,6 +97,7 @@ import {
|
|
|
95
97
|
SyncHook,
|
|
96
98
|
SyncWaterfallHook
|
|
97
99
|
} from "tapable";
|
|
100
|
+
import { SecureContextOptions, TlsOptions } from 'tls';
|
|
98
101
|
|
|
99
102
|
declare class AbstractLibraryPlugin<T> {
|
|
100
103
|
constructor(__0: {
|
|
@@ -383,6 +386,10 @@ declare class AutomaticPrefetchPlugin {
|
|
|
383
386
|
apply(compiler: Compiler): void;
|
|
384
387
|
}
|
|
385
388
|
type AuxiliaryComment = string | LibraryCustomUmdCommentObject;
|
|
389
|
+
declare interface BackendApi {
|
|
390
|
+
dispose: (arg0?: Error) => void;
|
|
391
|
+
module: (arg0: Module) => { client: string; data: string; active: boolean };
|
|
392
|
+
}
|
|
386
393
|
declare class BannerPlugin {
|
|
387
394
|
constructor(options: BannerPluginArgument);
|
|
388
395
|
options: BannerPluginOptions;
|
|
@@ -5794,25 +5801,45 @@ declare interface KnownStatsProfile {
|
|
|
5794
5801
|
dependencies: number;
|
|
5795
5802
|
}
|
|
5796
5803
|
|
|
5804
|
+
/**
|
|
5805
|
+
* Options for the default backend.
|
|
5806
|
+
*/
|
|
5807
|
+
declare interface LazyCompilationDefaultBackendOptions {
|
|
5808
|
+
/**
|
|
5809
|
+
* A custom client.
|
|
5810
|
+
*/
|
|
5811
|
+
client?: string;
|
|
5812
|
+
|
|
5813
|
+
/**
|
|
5814
|
+
* Specifies where to listen to from the server.
|
|
5815
|
+
*/
|
|
5816
|
+
listen?: number | ListenOptions | ((server: typeof Server) => void);
|
|
5817
|
+
|
|
5818
|
+
/**
|
|
5819
|
+
* Specifies the protocol the client should use to connect to the server.
|
|
5820
|
+
*/
|
|
5821
|
+
protocol?: "http" | "https";
|
|
5822
|
+
|
|
5823
|
+
/**
|
|
5824
|
+
* Specifies how to create the server handling the EventSource requests.
|
|
5825
|
+
*/
|
|
5826
|
+
server?: ServerOptionsImport | ServerOptionsHttps | (() => typeof Server);
|
|
5827
|
+
}
|
|
5828
|
+
|
|
5797
5829
|
/**
|
|
5798
5830
|
* Options for compiling entrypoints and import()s only when they are accessed.
|
|
5799
5831
|
*/
|
|
5800
5832
|
declare interface LazyCompilationOptions {
|
|
5801
5833
|
/**
|
|
5802
|
-
*
|
|
5834
|
+
* Specifies the backend that should be used for handling client keep alive.
|
|
5803
5835
|
*/
|
|
5804
5836
|
backend?:
|
|
5805
5837
|
| ((
|
|
5806
5838
|
compiler: Compiler,
|
|
5807
|
-
|
|
5808
|
-
callback: (err?: Error, api?: any) => void
|
|
5839
|
+
callback: (err?: Error, api?: BackendApi) => void
|
|
5809
5840
|
) => void)
|
|
5810
|
-
| ((compiler: Compiler
|
|
5811
|
-
|
|
5812
|
-
/**
|
|
5813
|
-
* A custom client.
|
|
5814
|
-
*/
|
|
5815
|
-
client?: string;
|
|
5841
|
+
| ((compiler: Compiler) => Promise<BackendApi>)
|
|
5842
|
+
| LazyCompilationDefaultBackendOptions;
|
|
5816
5843
|
|
|
5817
5844
|
/**
|
|
5818
5845
|
* Enable/disable lazy compilation for entries.
|
|
@@ -7485,6 +7512,7 @@ declare interface NormalModuleLoaderContext<OptionsType> {
|
|
|
7485
7512
|
utils: {
|
|
7486
7513
|
absolutify: (context: string, request: string) => string;
|
|
7487
7514
|
contextify: (context: string, request: string) => string;
|
|
7515
|
+
createHash: (algorithm?: string) => Hash;
|
|
7488
7516
|
};
|
|
7489
7517
|
rootContext: string;
|
|
7490
7518
|
fs: InputFileSystem;
|
|
@@ -10369,6 +10397,9 @@ declare abstract class Serializer {
|
|
|
10369
10397
|
serialize(obj?: any, context?: any): any;
|
|
10370
10398
|
deserialize(value?: any, context?: any): any;
|
|
10371
10399
|
}
|
|
10400
|
+
type ServerOptionsHttps = SecureContextOptions &
|
|
10401
|
+
TlsOptions &
|
|
10402
|
+
ServerOptionsImport;
|
|
10372
10403
|
declare class SharePlugin {
|
|
10373
10404
|
constructor(options: SharePluginOptions);
|
|
10374
10405
|
|