@umijs/bundler-webpack 4.0.0-canary.20221104.2 → 4.0.0-canary.20221108.2

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.
@@ -1,6 +1,7 @@
1
1
  // Type definitions for json-schema 4.0, 6.0 and 7.0
2
2
  // Project: https://github.com/kriszyp/json-schema
3
3
  // Definitions by: Boris Cherny <https://github.com/bcherny>
4
+ // Cyrille Tuzi <https://github.com/cyrilletuzi>
4
5
  // Lucian Buzzo <https://github.com/lucianbuzzo>
5
6
  // Roland Groza <https://github.com/rolandjitsu>
6
7
  // Jason Kwok <https://github.com/JasonHK>
@@ -620,14 +621,6 @@ export interface JSONSchema7 {
620
621
  $schema?: JSONSchema7Version | undefined;
621
622
  $comment?: string | undefined;
622
623
 
623
- /**
624
- * @see https://datatracker.ietf.org/doc/html/draft-bhutton-json-schema-00#section-8.2.4
625
- * @see https://datatracker.ietf.org/doc/html/draft-bhutton-json-schema-validation-00#appendix-A
626
- */
627
- $defs?: {
628
- [key: string]: JSONSchema7Definition;
629
- } | undefined;
630
-
631
624
  /**
632
625
  * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.1
633
626
  */
@@ -1 +1 @@
1
- {"name":"webpack","version":"5.74.0","author":"Tobias Koppers @sokra","license":"MIT","types":"types.d.ts"}
1
+ {"name":"webpack","version":"5.72.1","author":"Tobias Koppers @sokra","license":"MIT","types":"types.d.ts"}
@@ -2503,11 +2503,11 @@ declare interface ContextHash {
2503
2503
  }
2504
2504
  type ContextMode =
2505
2505
  | "weak"
2506
+ | "sync"
2506
2507
  | "eager"
2508
+ | "async-weak"
2507
2509
  | "lazy"
2508
- | "lazy-once"
2509
- | "sync"
2510
- | "async-weak";
2510
+ | "lazy-once";
2511
2511
  declare abstract class ContextModuleFactory extends ModuleFactory {
2512
2512
  hooks: Readonly<{
2513
2513
  beforeResolve: AsyncSeriesWaterfallHook<[any]>;
@@ -3847,13 +3847,6 @@ declare interface ExpressionExpressionInfo {
3847
3847
  getMembers: () => string[];
3848
3848
  getMembersOptionals: () => boolean[];
3849
3849
  }
3850
- declare interface ExtensionAliasOption {
3851
- alias: string | string[];
3852
- extension: string;
3853
- }
3854
- declare interface ExtensionAliasOptions {
3855
- [index: string]: string | string[];
3856
- }
3857
3850
  type ExternalItem =
3858
3851
  | string
3859
3852
  | RegExp
@@ -4509,42 +4502,6 @@ declare interface HandleModuleCreationOptions {
4509
4502
  */
4510
4503
  connectOrigin?: boolean;
4511
4504
  }
4512
- declare class HarmonyImportDependency extends ModuleDependency {
4513
- constructor(
4514
- request: string,
4515
- sourceOrder: number,
4516
- assertions?: Record<string, any>
4517
- );
4518
- sourceOrder: number;
4519
- getImportVar(moduleGraph: ModuleGraph): string;
4520
- getImportStatement(
4521
- update: boolean,
4522
- __1: DependencyTemplateContext
4523
- ): [string, string];
4524
- getLinkingErrors(
4525
- moduleGraph: ModuleGraph,
4526
- ids: string[],
4527
- additionalMessage: string
4528
- ): undefined | WebpackError[];
4529
- static Template: typeof HarmonyImportDependencyTemplate;
4530
- static ExportPresenceModes: {
4531
- NONE: 0;
4532
- WARN: 1;
4533
- AUTO: 2;
4534
- ERROR: 3;
4535
- fromUserOption(str?: any): 0 | 1 | 2 | 3;
4536
- };
4537
- static NO_EXPORTS_REFERENCED: string[][];
4538
- static EXPORTS_OBJECT_REFERENCED: string[][];
4539
- static TRANSITIVE: typeof TRANSITIVE;
4540
- }
4541
- declare class HarmonyImportDependencyTemplate extends DependencyTemplate {
4542
- constructor();
4543
- static getImportEmittedRuntime(
4544
- module: Module,
4545
- referencedModule: Module
4546
- ): undefined | string | boolean | SortableSet<string>;
4547
- }
4548
4505
  declare class Hash {
4549
4506
  constructor();
4550
4507
 
@@ -4945,15 +4902,6 @@ declare class JavascriptParser extends Parser {
4945
4902
  undefined | null | BasicEvaluatedExpression
4946
4903
  >
4947
4904
  >;
4948
- evaluateNewExpression: HookMap<
4949
- SyncBailHook<[NewExpression], undefined | null | BasicEvaluatedExpression>
4950
- >;
4951
- evaluateCallExpression: HookMap<
4952
- SyncBailHook<
4953
- [CallExpression],
4954
- undefined | null | BasicEvaluatedExpression
4955
- >
4956
- >;
4957
4905
  evaluateCallExpressionMember: HookMap<
4958
4906
  SyncBailHook<
4959
4907
  [CallExpression, undefined | BasicEvaluatedExpression],
@@ -5462,7 +5410,6 @@ declare class JavascriptParser extends Parser {
5462
5410
  isVariableDefined(name?: any): boolean;
5463
5411
  getVariableInfo(name: string): ExportedVariableInfo;
5464
5412
  setVariable(name: string, variableInfo: ExportedVariableInfo): void;
5465
- evaluatedVariable(tagInfo?: any): VariableInfo;
5466
5413
  parseCommentOptions(
5467
5414
  range?: any
5468
5415
  ): { options: null; errors: null } | { options: object; errors: unknown[] };
@@ -5543,26 +5490,6 @@ declare interface JavascriptParserOptions {
5543
5490
  */
5544
5491
  commonjsMagicComments?: boolean;
5545
5492
 
5546
- /**
5547
- * Enable/disable parsing "import { createRequire } from 'module'" and evaluating createRequire().
5548
- */
5549
- createRequire?: string | boolean;
5550
-
5551
- /**
5552
- * Specifies global mode for dynamic import.
5553
- */
5554
- dynamicImportMode?: "weak" | "eager" | "lazy" | "lazy-once";
5555
-
5556
- /**
5557
- * Specifies global prefetch for dynamic import.
5558
- */
5559
- dynamicImportPrefetch?: number | boolean;
5560
-
5561
- /**
5562
- * Specifies global preload for dynamic import.
5563
- */
5564
- dynamicImportPreload?: number | boolean;
5565
-
5566
5493
  /**
5567
5494
  * Specifies the behavior of invalid export names in "import ... from ..." and "export ... from ...".
5568
5495
  */
@@ -9617,7 +9544,6 @@ declare interface ResolveOptionsTypes {
9617
9544
  alias: AliasOption[];
9618
9545
  fallback: AliasOption[];
9619
9546
  aliasFields: Set<string | string[]>;
9620
- extensionAlias: ExtensionAliasOption[];
9621
9547
  cachePredicate: (arg0: ResolveRequest) => boolean;
9622
9548
  cacheWithContext: boolean;
9623
9549
 
@@ -9716,11 +9642,6 @@ declare interface ResolveOptionsWebpackOptions {
9716
9642
  */
9717
9643
  exportsFields?: string[];
9718
9644
 
9719
- /**
9720
- * An object which maps extension to extension aliases.
9721
- */
9722
- extensionAlias?: { [index: string]: string | string[] };
9723
-
9724
9645
  /**
9725
9646
  * Extensions added to the request when trying to find the file.
9726
9647
  */
@@ -11933,11 +11854,6 @@ declare interface UserResolveOptions {
11933
11854
  */
11934
11855
  fallback?: AliasOption[] | AliasOptions;
11935
11856
 
11936
- /**
11937
- * An object which maps extension to extension aliases
11938
- */
11939
- extensionAlias?: ExtensionAliasOptions;
11940
-
11941
11857
  /**
11942
11858
  * A list of alias fields in description files
11943
11859
  */
@@ -12775,12 +12691,7 @@ declare namespace exports {
12775
12691
  ) => void;
12776
12692
  }
12777
12693
  export namespace dependencies {
12778
- export {
12779
- ModuleDependency,
12780
- HarmonyImportDependency,
12781
- ConstDependency,
12782
- NullDependency
12783
- };
12694
+ export { ModuleDependency, ConstDependency, NullDependency };
12784
12695
  }
12785
12696
  export namespace ids {
12786
12697
  export {
@@ -13152,7 +13063,6 @@ declare namespace exports {
13152
13063
  Asset,
13153
13064
  AssetInfo,
13154
13065
  EntryOptions,
13155
- PathData,
13156
13066
  AssetEmittedInfo,
13157
13067
  MultiStats,
13158
13068
  ParserState,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umijs/bundler-webpack",
3
- "version": "4.0.0-canary.20221104.2",
3
+ "version": "4.0.0-canary.20221108.2",
4
4
  "description": "@umijs/bundler-webpack",
5
5
  "homepage": "https://github.com/umijs/umi/tree/master/packages/bundler-webpack#readme",
6
6
  "bugs": "https://github.com/umijs/umi/issues",
@@ -34,11 +34,11 @@
34
34
  "@svgr/plugin-jsx": "^6.2.1",
35
35
  "@svgr/plugin-svgo": "^6.2.0",
36
36
  "@types/hapi__joi": "17.1.8",
37
- "@umijs/babel-preset-umi": "4.0.0-canary.20221104.2",
38
- "@umijs/bundler-utils": "4.0.0-canary.20221104.2",
37
+ "@umijs/babel-preset-umi": "4.0.0-canary.20221108.2",
38
+ "@umijs/bundler-utils": "4.0.0-canary.20221108.2",
39
39
  "@umijs/case-sensitive-paths-webpack-plugin": "^1.0.1",
40
- "@umijs/mfsu": "4.0.0-canary.20221104.2",
41
- "@umijs/utils": "4.0.0-canary.20221104.2",
40
+ "@umijs/mfsu": "4.0.0-canary.20221108.2",
41
+ "@umijs/utils": "4.0.0-canary.20221108.2",
42
42
  "cors": "^2.8.5",
43
43
  "css-loader": "6.7.1",
44
44
  "es5-imcompatible-versions": "^0.1.73",
@@ -140,8 +140,7 @@
140
140
  "webpack/lib/NormalModule": "../webpack/NormalModule",
141
141
  "webpack-5-chain": "$$LOCAL",
142
142
  "webpack-sources": "$$LOCAL",
143
- "ws": "$$LOCAL",
144
- "css-loader": "css-loader"
143
+ "ws": "$$LOCAL"
145
144
  },
146
145
  "noMinify": [
147
146
  "./bundles/webpack/bundle",