index.js 43 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455
  1. const serial = require('../util/serial');
  2. const relateContext = require('../util/relate-context');
  3. const LocalModule = require('webpack/lib/dependencies/LocalModule');
  4. function flattenPrototype(obj) {
  5. if (typeof obj === 'string') {
  6. return obj;
  7. }
  8. const copy = {};
  9. for (const key in obj) {
  10. copy[key] = obj[key];
  11. }
  12. return copy;
  13. }
  14. const assignTruthful = {
  15. freeze(arg, dependency) {
  16. return arg;
  17. },
  18. thaw(arg, frozen) {
  19. return arg;
  20. },
  21. };
  22. const assignDefined = {
  23. freeze(arg, dependency) {
  24. if (typeof arg !== 'undefined') {
  25. return arg;
  26. }
  27. },
  28. thaw(arg, frozen) {
  29. if (typeof arg !== 'undefined') {
  30. return arg;
  31. }
  32. },
  33. }
  34. const optional = serial.assigned({
  35. prepend: assignTruthful,
  36. replaces: assignTruthful,
  37. critical: assignTruthful,
  38. namespaceObjectAsContext: assignDefined,
  39. callArgs: assignDefined,
  40. call: assignDefined,
  41. directImport: assignDefined,
  42. shorthand: assignDefined,
  43. optional: assignTruthful,
  44. loc: {
  45. freeze(arg, dependency) {
  46. return flattenPrototype(dependency.loc);
  47. },
  48. thaw(arg, frozen) {
  49. return arg;
  50. },
  51. },
  52. });
  53. const localModuleAssigned = {
  54. freeze(_, dependency) {
  55. if (
  56. typeof dependency.localModule === 'object' &&
  57. dependency.localModule !== null
  58. ) {
  59. return {
  60. name: dependency.localModule.name,
  61. idx: dependency.localModule.idx,
  62. used: dependency.localModule.used,
  63. };
  64. }
  65. },
  66. thaw(thawed, localModule, extra) {
  67. const state = extra.state;
  68. if (
  69. typeof localModule === 'object' &&
  70. localModule !== null
  71. ) {
  72. if (!state.localModules) {
  73. state.localModules = [];
  74. }
  75. if (!state.localModules[localModule.idx]) {
  76. state.localModules[localModule.idx] = new LocalModule(
  77. extra.module,
  78. localModule.name,
  79. localModule.idx,
  80. );
  81. state.localModules[localModule.idx].used =
  82. localModule.used;
  83. }
  84. thawed.localModule = state.localModules[localModule.idx];
  85. }
  86. return thawed;
  87. },
  88. };
  89. const warnings = {
  90. freeze(frozen, dependency) {
  91. if (frozen && dependency.getWarnings) {
  92. const warnings = dependency.getWarnings();
  93. if (warnings && warnings.length) {
  94. return warnings.map(
  95. ({ stack }) =>
  96. stack.includes('\n at Object.freeze')
  97. ? stack.split('\n at Object.freeze')[0]
  98. : stack.includes('\n at pluginCompat.tap')
  99. ? stack.split('\n at pluginCompat.tap')[0]
  100. : stack.split('\n at Compiler.pluginCompat.tap')[0],
  101. );
  102. }
  103. }
  104. },
  105. thaw(dependency, warnings) {
  106. if (dependency && warnings && dependency.getWarnings) {
  107. const frozenWarnings = warnings;
  108. const _getWarnings = dependency.getWarnings;
  109. dependency.getWarnings = function() {
  110. const warnings = _getWarnings.call(this);
  111. if (warnings && warnings.length) {
  112. return warnings.map((warning, i) => {
  113. const stack = warning.stack.split(
  114. '\n at Compilation.reportDependencyErrorsAndWarnings',
  115. )[1];
  116. warning.stack = `${
  117. frozenWarnings[i]
  118. }\n at Compilation.reportDependencyErrorsAndWarnings${stack}`;
  119. return warning;
  120. });
  121. }
  122. return warnings;
  123. };
  124. }
  125. return dependency;
  126. },
  127. };
  128. const AMDDefineDependency = require('webpack/lib/dependencies/AMDDefineDependency');
  129. const AMDDefineDependencySerial = serial.serial('AMDDefineDependency', {
  130. constructor: {
  131. freeze(_, dependency, extra, methods) {
  132. return {
  133. range: dependency.range,
  134. arrayRange: dependency.arrayRange,
  135. functionRange: dependency.functionRange,
  136. objectRange: dependency.objectRange,
  137. namedModule: dependency.namedModule,
  138. };
  139. },
  140. thaw(thawed, frozen, extra, methods) {
  141. return new AMDDefineDependency(
  142. frozen.range,
  143. frozen.arrayRange,
  144. frozen.functionRange,
  145. frozen.objectRange,
  146. frozen.namedModule,
  147. );
  148. },
  149. },
  150. optional,
  151. localModuleAssigned,
  152. warnings,
  153. });
  154. const AMDRequireArrayDependency = require('webpack/lib/dependencies/AMDRequireArrayDependency');
  155. const AMDRequireArrayDependencySerial = serial.serial('AMDRequireArrayDependency', {
  156. constructor: {
  157. freeze(_, dependency, extra, methods) {
  158. return {
  159. depsArray: methods.mapFreeze('Dependency', null, dependency.depsArray, extra),
  160. range: dependency.range,
  161. };
  162. },
  163. thaw(thawed, frozen, extra, methods) {
  164. return new AMDRequireArrayDependency(
  165. methods.mapThaw('Dependency', null, frozen.depsArray, extra),
  166. frozen.range,
  167. );
  168. },
  169. },
  170. optional,
  171. warnings,
  172. });
  173. const AMDRequireContextDependency = require('webpack/lib/dependencies/AMDRequireContextDependency');
  174. const AMDRequireContextDependencySerial = serial.serial('AMDRequireContextDependency', {
  175. constructor: {
  176. freeze(_, dependency, extra, methods) {
  177. return {
  178. options: dependency.options.regExp ?
  179. Object.assign({}, dependency.options, {
  180. regExp: dependency.options.regExp.source,
  181. }) :
  182. dependency.options,
  183. range: dependency.range,
  184. valueRange: dependency.valueRange,
  185. };
  186. },
  187. thaw(thawed, frozen, extra, methods) {
  188. return new AMDRequireContextDependency(
  189. frozen.options.regExp ?
  190. Object.assign({}, frozen.options, {
  191. regExp: new RegExp(frozen.options.regExp),
  192. }) :
  193. frozen.options,
  194. frozen.range,
  195. frozen.valueRange,
  196. );
  197. },
  198. },
  199. optional,
  200. warnings,
  201. });
  202. const AMDRequireDependency = require('webpack/lib/dependencies/AMDRequireDependency');
  203. const AMDRequireDependencySerial = serial.serial('AMDRequireDependency', {
  204. constructor: {
  205. freeze(_, dependency, extra, methods) {
  206. return {
  207. block: !dependency.block.dependencies.includes(dependency) ?
  208. methods.freeze('DependencyBlock', null, dependency.block, extra) :
  209. undefined,
  210. };
  211. },
  212. thaw(thawed, frozen, extra, methods) {
  213. return new AMDRequireDependency(
  214. !frozen.block ? extra.parent : methods.thaw('DependencyBlock', null, frozen.block, extra),
  215. );
  216. },
  217. },
  218. optional,
  219. warnings,
  220. });
  221. const AMDRequireItemDependency = require('webpack/lib/dependencies/AMDRequireItemDependency');
  222. const AMDRequireItemDependencySerial = serial.serial('AMDRequireItemDependency', {
  223. constructor: {
  224. freeze(_, dependency, extra, methods) {
  225. return {
  226. request: relateContext.relateAbsoluteRequest(extra.module.context, dependency.request),
  227. range: dependency.range,
  228. };
  229. },
  230. thaw(thawed, frozen, extra, methods) {
  231. return new AMDRequireItemDependency(
  232. frozen.request,
  233. frozen.range,
  234. );
  235. },
  236. },
  237. optional,
  238. warnings,
  239. });
  240. const CommonJsRequireContextDependency = require('webpack/lib/dependencies/CommonJsRequireContextDependency');
  241. const CommonJsRequireContextDependencySerial = serial.serial('CommonJsRequireContextDependency', {
  242. constructor: {
  243. freeze(_, dependency, extra, methods) {
  244. return {
  245. options: dependency.options.regExp ?
  246. Object.assign({}, dependency.options, {
  247. regExp: dependency.options.regExp.source,
  248. }) :
  249. dependency.options,
  250. range: dependency.range,
  251. valueRange: dependency.valueRange,
  252. };
  253. },
  254. thaw(thawed, frozen, extra, methods) {
  255. return new CommonJsRequireContextDependency(
  256. frozen.options.regExp ?
  257. Object.assign({}, frozen.options, {
  258. regExp: new RegExp(frozen.options.regExp),
  259. }) :
  260. frozen.options,
  261. frozen.range,
  262. frozen.valueRange,
  263. );
  264. },
  265. },
  266. optional,
  267. warnings,
  268. });
  269. const CommonJsRequireDependency = require('webpack/lib/dependencies/CommonJsRequireDependency');
  270. const CommonJsRequireDependencySerial = serial.serial('CommonJsRequireDependency', {
  271. constructor: {
  272. freeze(_, dependency, extra, methods) {
  273. return {
  274. request: relateContext.relateAbsoluteRequest(extra.module.context, dependency.request),
  275. range: dependency.range,
  276. };
  277. },
  278. thaw(thawed, frozen, extra, methods) {
  279. return new CommonJsRequireDependency(
  280. frozen.request,
  281. frozen.range,
  282. );
  283. },
  284. },
  285. optional,
  286. warnings,
  287. });
  288. const ConstDependency = require('webpack/lib/dependencies/ConstDependency');
  289. const ConstDependencySerial = serial.serial('ConstDependency', {
  290. constructor: {
  291. freeze(_, dependency, extra, methods) {
  292. return {
  293. expression: dependency.expression,
  294. range: dependency.range,
  295. requireWebpackRequire: dependency.requireWebpackRequire,
  296. };
  297. },
  298. thaw(thawed, frozen, extra, methods) {
  299. return new ConstDependency(
  300. frozen.expression,
  301. frozen.range,
  302. frozen.requireWebpackRequire,
  303. );
  304. },
  305. },
  306. optional,
  307. warnings,
  308. });
  309. const ContextDependency = require('webpack/lib/dependencies/ContextDependency');
  310. const ContextDependencySerial = serial.serial('ContextDependency', {
  311. constructor: {
  312. freeze(_, dependency, extra, methods) {
  313. return {
  314. options: dependency.options.regExp ?
  315. Object.assign({}, dependency.options, {
  316. regExp: dependency.options.regExp.source,
  317. }) :
  318. dependency.options,
  319. };
  320. },
  321. thaw(thawed, frozen, extra, methods) {
  322. return new ContextDependency(
  323. frozen.options.regExp ?
  324. Object.assign({}, frozen.options, {
  325. regExp: new RegExp(frozen.options.regExp),
  326. }) :
  327. frozen.options,
  328. );
  329. },
  330. },
  331. optional,
  332. warnings,
  333. });
  334. const ContextElementDependency = require('webpack/lib/dependencies/ContextElementDependency');
  335. const ContextElementDependencySerial = serial.serial('ContextElementDependency', {
  336. constructor: {
  337. freeze(_, dependency, extra, methods) {
  338. return {
  339. request: relateContext.relateAbsoluteRequest(extra.module.context, dependency.request),
  340. userRequest: relateContext.relateAbsoluteRequest(extra.module.context, dependency.userRequest),
  341. };
  342. },
  343. thaw(thawed, frozen, extra, methods) {
  344. return new ContextElementDependency(
  345. frozen.request,
  346. frozen.userRequest,
  347. );
  348. },
  349. },
  350. optional,
  351. warnings,
  352. });
  353. const CriticalDependencyWarning = require('webpack/lib/dependencies/CriticalDependencyWarning');
  354. const CriticalDependencyWarningSerial = serial.serial('CriticalDependencyWarning', {
  355. constructor: {
  356. freeze(_, dependency, extra, methods) {
  357. return {
  358. message: dependency.message,
  359. };
  360. },
  361. thaw(thawed, frozen, extra, methods) {
  362. return new CriticalDependencyWarning(
  363. frozen.message,
  364. );
  365. },
  366. },
  367. optional,
  368. warnings,
  369. });
  370. const DelegatedExportsDependency = require('webpack/lib/dependencies/DelegatedExportsDependency');
  371. const DelegatedExportsDependencySerial = serial.serial('DelegatedExportsDependency', {
  372. constructor: {
  373. freeze(_, dependency, extra, methods) {
  374. return {
  375. originModule: null,
  376. exports: dependency.exports,
  377. };
  378. },
  379. thaw(thawed, frozen, extra, methods) {
  380. return new DelegatedExportsDependency(
  381. extra.module,
  382. frozen.exports,
  383. );
  384. },
  385. },
  386. optional,
  387. warnings,
  388. });
  389. const DelegatedSourceDependency = require('webpack/lib/dependencies/DelegatedSourceDependency');
  390. const DelegatedSourceDependencySerial = serial.serial('DelegatedSourceDependency', {
  391. constructor: {
  392. freeze(_, dependency, extra, methods) {
  393. return {
  394. request: relateContext.relateAbsoluteRequest(extra.module.context, dependency.request),
  395. };
  396. },
  397. thaw(thawed, frozen, extra, methods) {
  398. return new DelegatedSourceDependency(
  399. frozen.request,
  400. );
  401. },
  402. },
  403. optional,
  404. warnings,
  405. });
  406. const DllEntryDependency = require('webpack/lib/dependencies/DllEntryDependency');
  407. const DllEntryDependencySerial = serial.serial('DllEntryDependency', {
  408. constructor: {
  409. freeze(_, dependency, extra, methods) {
  410. return {
  411. dependencies: methods.mapFreeze('Dependency', null, dependency.dependencies, extra),
  412. name: dependency.name,
  413. };
  414. },
  415. thaw(thawed, frozen, extra, methods) {
  416. return new DllEntryDependency(
  417. methods.mapThaw('Dependency', null, frozen.dependencies, extra),
  418. frozen.name,
  419. );
  420. },
  421. },
  422. optional,
  423. warnings,
  424. });
  425. const HarmonyAcceptDependency = require('webpack/lib/dependencies/HarmonyAcceptDependency');
  426. const HarmonyAcceptDependencySerial = serial.serial('HarmonyAcceptDependency', {
  427. constructor: {
  428. freeze(_, dependency, extra, methods) {
  429. return {
  430. range: dependency.range,
  431. dependencies: methods.mapFreeze('Dependency', null, dependency.dependencies, extra),
  432. hasCallback: dependency.hasCallback,
  433. };
  434. },
  435. thaw(thawed, frozen, extra, methods) {
  436. return new HarmonyAcceptDependency(
  437. frozen.range,
  438. methods.mapThaw('Dependency', null, frozen.dependencies, extra),
  439. frozen.hasCallback,
  440. );
  441. },
  442. },
  443. optional,
  444. warnings,
  445. });
  446. const HarmonyAcceptImportDependency = require('webpack/lib/dependencies/HarmonyAcceptImportDependency');
  447. const HarmonyAcceptImportDependencySerial = serial.serial('HarmonyAcceptImportDependency', {
  448. constructor: {
  449. freeze(_, dependency, extra, methods) {
  450. return {
  451. request: relateContext.relateAbsoluteRequest(extra.module.context, dependency.request),
  452. originModule: null,
  453. parserScope: null,
  454. };
  455. },
  456. thaw(thawed, frozen, extra, methods) {
  457. extra.state.harmonyParserScope = extra.state.harmonyParserScope || {};
  458. return new HarmonyAcceptImportDependency(
  459. frozen.request,
  460. extra.module,
  461. extra.state.harmonyParserScope,
  462. );
  463. },
  464. },
  465. optional,
  466. warnings,
  467. });
  468. const HarmonyCompatibilityDependency = require('webpack/lib/dependencies/HarmonyCompatibilityDependency');
  469. const HarmonyCompatibilityDependencySerial = serial.serial('HarmonyCompatibilityDependency', {
  470. constructor: {
  471. freeze(_, dependency, extra, methods) {
  472. return {
  473. originModule: null,
  474. };
  475. },
  476. thaw(thawed, frozen, extra, methods) {
  477. return new HarmonyCompatibilityDependency(
  478. extra.module,
  479. );
  480. },
  481. },
  482. optional,
  483. warnings,
  484. });
  485. const HarmonyExportExpressionDependency = require('webpack/lib/dependencies/HarmonyExportExpressionDependency');
  486. const HarmonyExportExpressionDependencySerial = serial.serial('HarmonyExportExpressionDependency', {
  487. constructor: {
  488. freeze(_, dependency, extra, methods) {
  489. return {
  490. originModule: null,
  491. range: dependency.range,
  492. rangeStatement: dependency.rangeStatement,
  493. prefix: dependency.prefix,
  494. };
  495. },
  496. thaw(thawed, frozen, extra, methods) {
  497. return new HarmonyExportExpressionDependency(
  498. extra.module,
  499. frozen.range,
  500. frozen.rangeStatement,
  501. frozen.prefix,
  502. );
  503. },
  504. },
  505. optional,
  506. warnings,
  507. });
  508. const HarmonyExportHeaderDependency = require('webpack/lib/dependencies/HarmonyExportHeaderDependency');
  509. const HarmonyExportHeaderDependencySerial = serial.serial('HarmonyExportHeaderDependency', {
  510. constructor: {
  511. freeze(_, dependency, extra, methods) {
  512. return {
  513. range: dependency.range,
  514. rangeStatement: dependency.rangeStatement,
  515. };
  516. },
  517. thaw(thawed, frozen, extra, methods) {
  518. return new HarmonyExportHeaderDependency(
  519. frozen.range,
  520. frozen.rangeStatement,
  521. );
  522. },
  523. },
  524. optional,
  525. warnings,
  526. });
  527. const HarmonyExportImportedSpecifierDependency = require('webpack/lib/dependencies/HarmonyExportImportedSpecifierDependency');
  528. const HarmonyExportImportedSpecifierDependencySerial = serial.serial('HarmonyExportImportedSpecifierDependency', {
  529. constructor: {
  530. freeze(_, dependency, extra, methods) {
  531. return {
  532. request: relateContext.relateAbsoluteRequest(extra.module.context, dependency.request),
  533. originModule: null,
  534. sourceOrder: dependency.sourceOrder,
  535. parserScope: null,
  536. id: dependency.id,
  537. name: dependency.name,
  538. activeExports: null,
  539. otherStarExports: dependency.otherStarExports ? 'star' : null,
  540. strictExportPresence: dependency.strictExportPresence,
  541. };
  542. },
  543. thaw(thawed, frozen, extra, methods) {
  544. extra.state.harmonyParserScope = extra.state.harmonyParserScope || {};
  545. extra.state.activeExports = extra.state.activeExports || new Set();
  546. if (frozen.name) {
  547. extra.state.activeExports.add(frozen.name);
  548. }
  549. return new HarmonyExportImportedSpecifierDependency(
  550. frozen.request,
  551. extra.module,
  552. frozen.sourceOrder,
  553. extra.state.harmonyParserScope,
  554. frozen.id,
  555. frozen.name,
  556. extra.state.activeExports,
  557. frozen.otherStarExports === 'star' ?
  558. (extra.state.otherStarExports || []) :
  559. null,
  560. frozen.strictExportPresence,
  561. );
  562. },
  563. },
  564. optional,
  565. warnings,
  566. exportImportedDependency: {
  567. freeze(frozen) {},
  568. thaw(thawed, frozen, extra) {
  569. if (thawed.otherStarExports) {
  570. extra.state.otherStarExports = (
  571. extra.state.otherStarExports || []
  572. ).concat(thawed);
  573. }
  574. return thawed;
  575. },
  576. },
  577. });
  578. const HarmonyExportSpecifierDependency = require('webpack/lib/dependencies/HarmonyExportSpecifierDependency');
  579. const HarmonyExportSpecifierDependencySerial = serial.serial('HarmonyExportSpecifierDependency', {
  580. constructor: {
  581. freeze(_, dependency, extra, methods) {
  582. return {
  583. originModule: null,
  584. id: dependency.id,
  585. name: dependency.name,
  586. };
  587. },
  588. thaw(thawed, frozen, extra, methods) {
  589. return new HarmonyExportSpecifierDependency(
  590. extra.module,
  591. frozen.id,
  592. frozen.name,
  593. );
  594. },
  595. },
  596. optional,
  597. warnings,
  598. });
  599. const HarmonyImportDependency = require('webpack/lib/dependencies/HarmonyImportDependency');
  600. const HarmonyImportDependencySerial = serial.serial('HarmonyImportDependency', {
  601. constructor: {
  602. freeze(_, dependency, extra, methods) {
  603. return {
  604. request: relateContext.relateAbsoluteRequest(extra.module.context, dependency.request),
  605. originModule: null,
  606. sourceOrder: dependency.sourceOrder,
  607. parserScope: null,
  608. };
  609. },
  610. thaw(thawed, frozen, extra, methods) {
  611. extra.state.harmonyParserScope = extra.state.harmonyParserScope || {};
  612. return new HarmonyImportDependency(
  613. frozen.request,
  614. extra.module,
  615. frozen.sourceOrder,
  616. extra.state.harmonyParserScope,
  617. );
  618. },
  619. },
  620. optional,
  621. warnings,
  622. importDependency: {
  623. freeze(frozen) {
  624. return frozen;
  625. },
  626. thaw(thawed, frozen, extra) {
  627. const state = extra.state;
  628. const ref = frozen.range.toString();
  629. if (state.imports[ref]) {
  630. return state.imports[ref];
  631. }
  632. state.imports[ref] = thawed;
  633. return thawed;
  634. },
  635. },
  636. });
  637. const HarmonyImportSideEffectDependency = require('webpack/lib/dependencies/HarmonyImportSideEffectDependency');
  638. const HarmonyImportSideEffectDependencySerial = serial.serial('HarmonyImportSideEffectDependency', {
  639. constructor: {
  640. freeze(_, dependency, extra, methods) {
  641. return {
  642. request: relateContext.relateAbsoluteRequest(extra.module.context, dependency.request),
  643. originModule: null,
  644. sourceOrder: dependency.sourceOrder,
  645. parserScope: null,
  646. };
  647. },
  648. thaw(thawed, frozen, extra, methods) {
  649. extra.state.harmonyParserScope = extra.state.harmonyParserScope || {};
  650. return new HarmonyImportSideEffectDependency(
  651. frozen.request,
  652. extra.module,
  653. frozen.sourceOrder,
  654. extra.state.harmonyParserScope,
  655. );
  656. },
  657. },
  658. optional,
  659. warnings,
  660. });
  661. const HarmonyImportSpecifierDependency = require('webpack/lib/dependencies/HarmonyImportSpecifierDependency');
  662. const HarmonyImportSpecifierDependencySerial = serial.serial('HarmonyImportSpecifierDependency', {
  663. constructor: {
  664. freeze(_, dependency, extra, methods) {
  665. return {
  666. request: relateContext.relateAbsoluteRequest(extra.module.context, dependency.request),
  667. originModule: null,
  668. sourceOrder: dependency.sourceOrder,
  669. parserScope: null,
  670. id: dependency.id,
  671. name: dependency.name,
  672. range: dependency.range,
  673. strictExportPresence: dependency.strictExportPresence,
  674. };
  675. },
  676. thaw(thawed, frozen, extra, methods) {
  677. extra.state.harmonyParserScope = extra.state.harmonyParserScope || {};
  678. return new HarmonyImportSpecifierDependency(
  679. frozen.request,
  680. extra.module,
  681. frozen.sourceOrder,
  682. extra.state.harmonyParserScope,
  683. frozen.id,
  684. frozen.name,
  685. frozen.range,
  686. frozen.strictExportPresence,
  687. );
  688. },
  689. },
  690. optional,
  691. warnings,
  692. });
  693. const HarmonyInitDependency = require('webpack/lib/dependencies/HarmonyInitDependency');
  694. const HarmonyInitDependencySerial = serial.serial('HarmonyInitDependency', {
  695. constructor: {
  696. freeze(_, dependency, extra, methods) {
  697. return {
  698. originModule: null,
  699. };
  700. },
  701. thaw(thawed, frozen, extra, methods) {
  702. return new HarmonyInitDependency(
  703. extra.module,
  704. );
  705. },
  706. },
  707. optional,
  708. warnings,
  709. });
  710. const ImportContextDependency = require('webpack/lib/dependencies/ImportContextDependency');
  711. const ImportContextDependencySerial = serial.serial('ImportContextDependency', {
  712. constructor: {
  713. freeze(_, dependency, extra, methods) {
  714. return {
  715. options: dependency.options.regExp ?
  716. Object.assign({}, dependency.options, {
  717. regExp: dependency.options.regExp.source,
  718. }) :
  719. dependency.options,
  720. range: dependency.range,
  721. valueRange: dependency.valueRange,
  722. };
  723. },
  724. thaw(thawed, frozen, extra, methods) {
  725. return new ImportContextDependency(
  726. frozen.options.regExp ?
  727. Object.assign({}, frozen.options, {
  728. regExp: new RegExp(frozen.options.regExp),
  729. }) :
  730. frozen.options,
  731. frozen.range,
  732. frozen.valueRange,
  733. );
  734. },
  735. },
  736. optional,
  737. warnings,
  738. });
  739. const ImportDependency = require('webpack/lib/dependencies/ImportDependency');
  740. const ImportDependencySerial = serial.serial('ImportDependency', {
  741. constructor: {
  742. freeze(_, dependency, extra, methods) {
  743. return {
  744. request: relateContext.relateAbsoluteRequest(extra.module.context, dependency.request),
  745. originModule: null,
  746. block: !dependency.block.dependencies.includes(dependency) ?
  747. methods.freeze('DependencyBlock', null, dependency.block, extra) :
  748. undefined,
  749. };
  750. },
  751. thaw(thawed, frozen, extra, methods) {
  752. return new ImportDependency(
  753. frozen.request,
  754. extra.module,
  755. !frozen.block ? extra.parent : methods.thaw('DependencyBlock', null, frozen.block, extra),
  756. );
  757. },
  758. },
  759. optional,
  760. warnings,
  761. });
  762. const ImportEagerDependency = require('webpack/lib/dependencies/ImportEagerDependency');
  763. const ImportEagerDependencySerial = serial.serial('ImportEagerDependency', {
  764. constructor: {
  765. freeze(_, dependency, extra, methods) {
  766. return {
  767. request: relateContext.relateAbsoluteRequest(extra.module.context, dependency.request),
  768. originModule: null,
  769. range: dependency.range,
  770. };
  771. },
  772. thaw(thawed, frozen, extra, methods) {
  773. return new ImportEagerDependency(
  774. frozen.request,
  775. extra.module,
  776. frozen.range,
  777. );
  778. },
  779. },
  780. optional,
  781. warnings,
  782. });
  783. const ImportWeakDependency = require('webpack/lib/dependencies/ImportWeakDependency');
  784. const ImportWeakDependencySerial = serial.serial('ImportWeakDependency', {
  785. constructor: {
  786. freeze(_, dependency, extra, methods) {
  787. return {
  788. request: relateContext.relateAbsoluteRequest(extra.module.context, dependency.request),
  789. originModule: null,
  790. range: dependency.range,
  791. };
  792. },
  793. thaw(thawed, frozen, extra, methods) {
  794. return new ImportWeakDependency(
  795. frozen.request,
  796. extra.module,
  797. frozen.range,
  798. );
  799. },
  800. },
  801. optional,
  802. warnings,
  803. });
  804. const JsonExportsDependency = require('webpack/lib/dependencies/JsonExportsDependency');
  805. const JsonExportsDependencySerial = serial.serial('JsonExportsDependency', {
  806. constructor: {
  807. freeze(_, dependency, extra, methods) {
  808. return {
  809. exports: dependency.exports,
  810. };
  811. },
  812. thaw(thawed, frozen, extra, methods) {
  813. return new JsonExportsDependency(
  814. frozen.exports,
  815. );
  816. },
  817. },
  818. optional,
  819. warnings,
  820. });
  821. const LoaderDependency = require('webpack/lib/dependencies/LoaderDependency');
  822. const LoaderDependencySerial = serial.serial('LoaderDependency', {
  823. constructor: {
  824. freeze(_, dependency, extra, methods) {
  825. return {
  826. request: relateContext.relateAbsoluteRequest(extra.module.context, dependency.request),
  827. };
  828. },
  829. thaw(thawed, frozen, extra, methods) {
  830. return new LoaderDependency(
  831. frozen.request,
  832. );
  833. },
  834. },
  835. optional,
  836. warnings,
  837. });
  838. const LocalModuleDependency = require('webpack/lib/dependencies/LocalModuleDependency');
  839. const LocalModuleDependencySerial = serial.serial('LocalModuleDependency', {
  840. constructor: {
  841. freeze(_, dependency, extra, methods) {
  842. return {
  843. localModule: {
  844. name: dependency.localModule.name,
  845. name: dependency.localModule.idx,
  846. },
  847. range: dependency.range,
  848. callNew: dependency.callNew,
  849. };
  850. },
  851. thaw(thawed, frozen, extra, methods) {
  852. if (!extra.state.localModules) {
  853. extra.state.localModules = [];
  854. }
  855. if (!extra.state.localModules[frozen.localModule.idx]) {
  856. extra.state.localModules[frozen.localModule.idx] = new LocalModule(extra.module, frozen.localModule.name, frozen.localModule.idx);
  857. extra.state.localModules[frozen.localModule.idx].used = frozen.localModule.used;
  858. }
  859. return new LocalModuleDependency(
  860. extra.state.localModules[frozen.localModule.idx],
  861. frozen.range,
  862. frozen.callNew,
  863. );
  864. },
  865. },
  866. optional,
  867. localModuleAssigned,
  868. warnings,
  869. });
  870. const ModuleDependency = require('webpack/lib/dependencies/ModuleDependency');
  871. const ModuleDependencySerial = serial.serial('ModuleDependency', {
  872. constructor: {
  873. freeze(_, dependency, extra, methods) {
  874. return {
  875. request: relateContext.relateAbsoluteRequest(extra.module.context, dependency.request),
  876. };
  877. },
  878. thaw(thawed, frozen, extra, methods) {
  879. return new ModuleDependency(
  880. frozen.request,
  881. );
  882. },
  883. },
  884. optional,
  885. warnings,
  886. });
  887. const ModuleHotAcceptDependency = require('webpack/lib/dependencies/ModuleHotAcceptDependency');
  888. const ModuleHotAcceptDependencySerial = serial.serial('ModuleHotAcceptDependency', {
  889. constructor: {
  890. freeze(_, dependency, extra, methods) {
  891. return {
  892. request: relateContext.relateAbsoluteRequest(extra.module.context, dependency.request),
  893. range: dependency.range,
  894. };
  895. },
  896. thaw(thawed, frozen, extra, methods) {
  897. return new ModuleHotAcceptDependency(
  898. frozen.request,
  899. frozen.range,
  900. );
  901. },
  902. },
  903. optional,
  904. warnings,
  905. });
  906. const ModuleHotDeclineDependency = require('webpack/lib/dependencies/ModuleHotDeclineDependency');
  907. const ModuleHotDeclineDependencySerial = serial.serial('ModuleHotDeclineDependency', {
  908. constructor: {
  909. freeze(_, dependency, extra, methods) {
  910. return {
  911. request: relateContext.relateAbsoluteRequest(extra.module.context, dependency.request),
  912. range: dependency.range,
  913. };
  914. },
  915. thaw(thawed, frozen, extra, methods) {
  916. return new ModuleHotDeclineDependency(
  917. frozen.request,
  918. frozen.range,
  919. );
  920. },
  921. },
  922. optional,
  923. warnings,
  924. });
  925. const MultiEntryDependency = require('webpack/lib/dependencies/MultiEntryDependency');
  926. const MultiEntryDependencySerial = serial.serial('MultiEntryDependency', {
  927. constructor: {
  928. freeze(_, dependency, extra, methods) {
  929. return {
  930. dependencies: methods.mapFreeze('Dependency', null, dependency.dependencies, extra),
  931. name: dependency.name,
  932. };
  933. },
  934. thaw(thawed, frozen, extra, methods) {
  935. return new MultiEntryDependency(
  936. methods.mapThaw('Dependency', null, frozen.dependencies, extra),
  937. frozen.name,
  938. );
  939. },
  940. },
  941. optional,
  942. warnings,
  943. });
  944. const NullDependency = require('webpack/lib/dependencies/NullDependency');
  945. const NullDependencySerial = serial.serial('NullDependency', {
  946. constructor: {
  947. freeze(_, dependency, extra, methods) {
  948. return {
  949. };
  950. },
  951. thaw(thawed, frozen, extra, methods) {
  952. return new NullDependency(
  953. );
  954. },
  955. },
  956. optional,
  957. warnings,
  958. });
  959. const PrefetchDependency = require('webpack/lib/dependencies/PrefetchDependency');
  960. const PrefetchDependencySerial = serial.serial('PrefetchDependency', {
  961. constructor: {
  962. freeze(_, dependency, extra, methods) {
  963. return {
  964. request: relateContext.relateAbsoluteRequest(extra.module.context, dependency.request),
  965. };
  966. },
  967. thaw(thawed, frozen, extra, methods) {
  968. return new PrefetchDependency(
  969. frozen.request,
  970. );
  971. },
  972. },
  973. optional,
  974. warnings,
  975. });
  976. const RequireContextDependency = require('webpack/lib/dependencies/RequireContextDependency');
  977. const RequireContextDependencySerial = serial.serial('RequireContextDependency', {
  978. constructor: {
  979. freeze(_, dependency, extra, methods) {
  980. return {
  981. options: dependency.options.regExp ?
  982. Object.assign({}, dependency.options, {
  983. regExp: dependency.options.regExp.source,
  984. }) :
  985. dependency.options,
  986. range: dependency.range,
  987. };
  988. },
  989. thaw(thawed, frozen, extra, methods) {
  990. return new RequireContextDependency(
  991. frozen.options.regExp ?
  992. Object.assign({}, frozen.options, {
  993. regExp: new RegExp(frozen.options.regExp),
  994. }) :
  995. frozen.options,
  996. frozen.range,
  997. );
  998. },
  999. },
  1000. optional,
  1001. warnings,
  1002. });
  1003. const RequireEnsureDependency = require('webpack/lib/dependencies/RequireEnsureDependency');
  1004. const RequireEnsureDependencySerial = serial.serial('RequireEnsureDependency', {
  1005. constructor: {
  1006. freeze(_, dependency, extra, methods) {
  1007. return {
  1008. block: !dependency.block.dependencies.includes(dependency) ?
  1009. methods.freeze('DependencyBlock', null, dependency.block, extra) :
  1010. undefined,
  1011. };
  1012. },
  1013. thaw(thawed, frozen, extra, methods) {
  1014. return new RequireEnsureDependency(
  1015. !frozen.block ? extra.parent : methods.thaw('DependencyBlock', null, frozen.block, extra),
  1016. );
  1017. },
  1018. },
  1019. optional,
  1020. warnings,
  1021. });
  1022. const RequireEnsureItemDependency = require('webpack/lib/dependencies/RequireEnsureItemDependency');
  1023. const RequireEnsureItemDependencySerial = serial.serial('RequireEnsureItemDependency', {
  1024. constructor: {
  1025. freeze(_, dependency, extra, methods) {
  1026. return {
  1027. request: relateContext.relateAbsoluteRequest(extra.module.context, dependency.request),
  1028. };
  1029. },
  1030. thaw(thawed, frozen, extra, methods) {
  1031. return new RequireEnsureItemDependency(
  1032. frozen.request,
  1033. );
  1034. },
  1035. },
  1036. optional,
  1037. warnings,
  1038. });
  1039. const RequireHeaderDependency = require('webpack/lib/dependencies/RequireHeaderDependency');
  1040. const RequireHeaderDependencySerial = serial.serial('RequireHeaderDependency', {
  1041. constructor: {
  1042. freeze(_, dependency, extra, methods) {
  1043. return {
  1044. range: dependency.range,
  1045. };
  1046. },
  1047. thaw(thawed, frozen, extra, methods) {
  1048. return new RequireHeaderDependency(
  1049. frozen.range,
  1050. );
  1051. },
  1052. },
  1053. optional,
  1054. warnings,
  1055. });
  1056. const RequireIncludeDependency = require('webpack/lib/dependencies/RequireIncludeDependency');
  1057. const RequireIncludeDependencySerial = serial.serial('RequireIncludeDependency', {
  1058. constructor: {
  1059. freeze(_, dependency, extra, methods) {
  1060. return {
  1061. request: relateContext.relateAbsoluteRequest(extra.module.context, dependency.request),
  1062. range: dependency.range,
  1063. };
  1064. },
  1065. thaw(thawed, frozen, extra, methods) {
  1066. return new RequireIncludeDependency(
  1067. frozen.request,
  1068. frozen.range,
  1069. );
  1070. },
  1071. },
  1072. optional,
  1073. warnings,
  1074. });
  1075. const RequireResolveContextDependency = require('webpack/lib/dependencies/RequireResolveContextDependency');
  1076. const RequireResolveContextDependencySerial = serial.serial('RequireResolveContextDependency', {
  1077. constructor: {
  1078. freeze(_, dependency, extra, methods) {
  1079. return {
  1080. options: dependency.options.regExp ?
  1081. Object.assign({}, dependency.options, {
  1082. regExp: dependency.options.regExp.source,
  1083. }) :
  1084. dependency.options,
  1085. range: dependency.range,
  1086. valueRange: dependency.valueRange,
  1087. };
  1088. },
  1089. thaw(thawed, frozen, extra, methods) {
  1090. return new RequireResolveContextDependency(
  1091. frozen.options.regExp ?
  1092. Object.assign({}, frozen.options, {
  1093. regExp: new RegExp(frozen.options.regExp),
  1094. }) :
  1095. frozen.options,
  1096. frozen.range,
  1097. frozen.valueRange,
  1098. );
  1099. },
  1100. },
  1101. optional,
  1102. warnings,
  1103. });
  1104. const RequireResolveDependency = require('webpack/lib/dependencies/RequireResolveDependency');
  1105. const RequireResolveDependencySerial = serial.serial('RequireResolveDependency', {
  1106. constructor: {
  1107. freeze(_, dependency, extra, methods) {
  1108. return {
  1109. request: relateContext.relateAbsoluteRequest(extra.module.context, dependency.request),
  1110. range: dependency.range,
  1111. };
  1112. },
  1113. thaw(thawed, frozen, extra, methods) {
  1114. return new RequireResolveDependency(
  1115. frozen.request,
  1116. frozen.range,
  1117. );
  1118. },
  1119. },
  1120. optional,
  1121. warnings,
  1122. });
  1123. const RequireResolveHeaderDependency = require('webpack/lib/dependencies/RequireResolveHeaderDependency');
  1124. const RequireResolveHeaderDependencySerial = serial.serial('RequireResolveHeaderDependency', {
  1125. constructor: {
  1126. freeze(_, dependency, extra, methods) {
  1127. return {
  1128. range: dependency.range,
  1129. };
  1130. },
  1131. thaw(thawed, frozen, extra, methods) {
  1132. return new RequireResolveHeaderDependency(
  1133. frozen.range,
  1134. );
  1135. },
  1136. },
  1137. optional,
  1138. warnings,
  1139. });
  1140. const SingleEntryDependency = require('webpack/lib/dependencies/SingleEntryDependency');
  1141. const SingleEntryDependencySerial = serial.serial('SingleEntryDependency', {
  1142. constructor: {
  1143. freeze(_, dependency, extra, methods) {
  1144. return {
  1145. request: relateContext.relateAbsoluteRequest(extra.module.context, dependency.request),
  1146. };
  1147. },
  1148. thaw(thawed, frozen, extra, methods) {
  1149. return new SingleEntryDependency(
  1150. frozen.request,
  1151. );
  1152. },
  1153. },
  1154. optional,
  1155. warnings,
  1156. });
  1157. const UnsupportedDependency = require('webpack/lib/dependencies/UnsupportedDependency');
  1158. const UnsupportedDependencySerial = serial.serial('UnsupportedDependency', {
  1159. constructor: {
  1160. freeze(_, dependency, extra, methods) {
  1161. return {
  1162. request: relateContext.relateAbsoluteRequest(extra.module.context, dependency.request),
  1163. range: dependency.range,
  1164. };
  1165. },
  1166. thaw(thawed, frozen, extra, methods) {
  1167. return new UnsupportedDependency(
  1168. frozen.request,
  1169. frozen.range,
  1170. );
  1171. },
  1172. },
  1173. optional,
  1174. warnings,
  1175. });
  1176. const WebAssemblyImportDependency = require('webpack/lib/dependencies/WebAssemblyImportDependency');
  1177. const WebAssemblyImportDependencySerial = serial.serial('WebAssemblyImportDependency', {
  1178. constructor: {
  1179. freeze(_, dependency, extra, methods) {
  1180. return {
  1181. request: relateContext.relateAbsoluteRequest(extra.module.context, dependency.request),
  1182. name: dependency.name,
  1183. description: dependency.description,
  1184. onlyDirectImport: dependency.onlyDirectImport,
  1185. };
  1186. },
  1187. thaw(thawed, frozen, extra, methods) {
  1188. return new WebAssemblyImportDependency(
  1189. frozen.request,
  1190. frozen.name,
  1191. frozen.description,
  1192. frozen.onlyDirectImport,
  1193. );
  1194. },
  1195. },
  1196. optional,
  1197. warnings,
  1198. });
  1199. exports.map = new Map();
  1200. exports.AMDDefineDependency = AMDDefineDependencySerial;
  1201. exports.map.set(AMDDefineDependency, AMDDefineDependencySerial);
  1202. exports.AMDRequireArrayDependency = AMDRequireArrayDependencySerial;
  1203. exports.map.set(AMDRequireArrayDependency, AMDRequireArrayDependencySerial);
  1204. exports.AMDRequireContextDependency = AMDRequireContextDependencySerial;
  1205. exports.map.set(AMDRequireContextDependency, AMDRequireContextDependencySerial);
  1206. exports.AMDRequireDependency = AMDRequireDependencySerial;
  1207. exports.map.set(AMDRequireDependency, AMDRequireDependencySerial);
  1208. exports.AMDRequireItemDependency = AMDRequireItemDependencySerial;
  1209. exports.map.set(AMDRequireItemDependency, AMDRequireItemDependencySerial);
  1210. exports.CommonJsRequireContextDependency = CommonJsRequireContextDependencySerial;
  1211. exports.map.set(CommonJsRequireContextDependency, CommonJsRequireContextDependencySerial);
  1212. exports.CommonJsRequireDependency = CommonJsRequireDependencySerial;
  1213. exports.map.set(CommonJsRequireDependency, CommonJsRequireDependencySerial);
  1214. exports.ConstDependency = ConstDependencySerial;
  1215. exports.map.set(ConstDependency, ConstDependencySerial);
  1216. exports.ContextDependency = ContextDependencySerial;
  1217. exports.map.set(ContextDependency, ContextDependencySerial);
  1218. exports.ContextElementDependency = ContextElementDependencySerial;
  1219. exports.map.set(ContextElementDependency, ContextElementDependencySerial);
  1220. exports.CriticalDependencyWarning = CriticalDependencyWarningSerial;
  1221. exports.map.set(CriticalDependencyWarning, CriticalDependencyWarningSerial);
  1222. exports.DelegatedExportsDependency = DelegatedExportsDependencySerial;
  1223. exports.map.set(DelegatedExportsDependency, DelegatedExportsDependencySerial);
  1224. exports.DelegatedSourceDependency = DelegatedSourceDependencySerial;
  1225. exports.map.set(DelegatedSourceDependency, DelegatedSourceDependencySerial);
  1226. exports.DllEntryDependency = DllEntryDependencySerial;
  1227. exports.map.set(DllEntryDependency, DllEntryDependencySerial);
  1228. exports.HarmonyAcceptDependency = HarmonyAcceptDependencySerial;
  1229. exports.map.set(HarmonyAcceptDependency, HarmonyAcceptDependencySerial);
  1230. exports.HarmonyAcceptImportDependency = HarmonyAcceptImportDependencySerial;
  1231. exports.map.set(HarmonyAcceptImportDependency, HarmonyAcceptImportDependencySerial);
  1232. exports.HarmonyCompatibilityDependency = HarmonyCompatibilityDependencySerial;
  1233. exports.map.set(HarmonyCompatibilityDependency, HarmonyCompatibilityDependencySerial);
  1234. exports.HarmonyExportExpressionDependency = HarmonyExportExpressionDependencySerial;
  1235. exports.map.set(HarmonyExportExpressionDependency, HarmonyExportExpressionDependencySerial);
  1236. exports.HarmonyExportHeaderDependency = HarmonyExportHeaderDependencySerial;
  1237. exports.map.set(HarmonyExportHeaderDependency, HarmonyExportHeaderDependencySerial);
  1238. exports.HarmonyExportImportedSpecifierDependency = HarmonyExportImportedSpecifierDependencySerial;
  1239. exports.map.set(HarmonyExportImportedSpecifierDependency, HarmonyExportImportedSpecifierDependencySerial);
  1240. exports.HarmonyExportSpecifierDependency = HarmonyExportSpecifierDependencySerial;
  1241. exports.map.set(HarmonyExportSpecifierDependency, HarmonyExportSpecifierDependencySerial);
  1242. exports.HarmonyImportDependency = HarmonyImportDependencySerial;
  1243. exports.map.set(HarmonyImportDependency, HarmonyImportDependencySerial);
  1244. exports.HarmonyImportSideEffectDependency = HarmonyImportSideEffectDependencySerial;
  1245. exports.map.set(HarmonyImportSideEffectDependency, HarmonyImportSideEffectDependencySerial);
  1246. exports.HarmonyImportSpecifierDependency = HarmonyImportSpecifierDependencySerial;
  1247. exports.map.set(HarmonyImportSpecifierDependency, HarmonyImportSpecifierDependencySerial);
  1248. exports.HarmonyInitDependency = HarmonyInitDependencySerial;
  1249. exports.map.set(HarmonyInitDependency, HarmonyInitDependencySerial);
  1250. exports.ImportContextDependency = ImportContextDependencySerial;
  1251. exports.map.set(ImportContextDependency, ImportContextDependencySerial);
  1252. exports.ImportDependency = ImportDependencySerial;
  1253. exports.map.set(ImportDependency, ImportDependencySerial);
  1254. exports.ImportEagerDependency = ImportEagerDependencySerial;
  1255. exports.map.set(ImportEagerDependency, ImportEagerDependencySerial);
  1256. exports.ImportWeakDependency = ImportWeakDependencySerial;
  1257. exports.map.set(ImportWeakDependency, ImportWeakDependencySerial);
  1258. exports.JsonExportsDependency = JsonExportsDependencySerial;
  1259. exports.map.set(JsonExportsDependency, JsonExportsDependencySerial);
  1260. exports.LoaderDependency = LoaderDependencySerial;
  1261. exports.map.set(LoaderDependency, LoaderDependencySerial);
  1262. exports.LocalModuleDependency = LocalModuleDependencySerial;
  1263. exports.map.set(LocalModuleDependency, LocalModuleDependencySerial);
  1264. exports.ModuleDependency = ModuleDependencySerial;
  1265. exports.map.set(ModuleDependency, ModuleDependencySerial);
  1266. exports.ModuleHotAcceptDependency = ModuleHotAcceptDependencySerial;
  1267. exports.map.set(ModuleHotAcceptDependency, ModuleHotAcceptDependencySerial);
  1268. exports.ModuleHotDeclineDependency = ModuleHotDeclineDependencySerial;
  1269. exports.map.set(ModuleHotDeclineDependency, ModuleHotDeclineDependencySerial);
  1270. exports.MultiEntryDependency = MultiEntryDependencySerial;
  1271. exports.map.set(MultiEntryDependency, MultiEntryDependencySerial);
  1272. exports.NullDependency = NullDependencySerial;
  1273. exports.map.set(NullDependency, NullDependencySerial);
  1274. exports.PrefetchDependency = PrefetchDependencySerial;
  1275. exports.map.set(PrefetchDependency, PrefetchDependencySerial);
  1276. exports.RequireContextDependency = RequireContextDependencySerial;
  1277. exports.map.set(RequireContextDependency, RequireContextDependencySerial);
  1278. exports.RequireEnsureDependency = RequireEnsureDependencySerial;
  1279. exports.map.set(RequireEnsureDependency, RequireEnsureDependencySerial);
  1280. exports.RequireEnsureItemDependency = RequireEnsureItemDependencySerial;
  1281. exports.map.set(RequireEnsureItemDependency, RequireEnsureItemDependencySerial);
  1282. exports.RequireHeaderDependency = RequireHeaderDependencySerial;
  1283. exports.map.set(RequireHeaderDependency, RequireHeaderDependencySerial);
  1284. exports.RequireIncludeDependency = RequireIncludeDependencySerial;
  1285. exports.map.set(RequireIncludeDependency, RequireIncludeDependencySerial);
  1286. exports.RequireResolveContextDependency = RequireResolveContextDependencySerial;
  1287. exports.map.set(RequireResolveContextDependency, RequireResolveContextDependencySerial);
  1288. exports.RequireResolveDependency = RequireResolveDependencySerial;
  1289. exports.map.set(RequireResolveDependency, RequireResolveDependencySerial);
  1290. exports.RequireResolveHeaderDependency = RequireResolveHeaderDependencySerial;
  1291. exports.map.set(RequireResolveHeaderDependency, RequireResolveHeaderDependencySerial);
  1292. exports.SingleEntryDependency = SingleEntryDependencySerial;
  1293. exports.map.set(SingleEntryDependency, SingleEntryDependencySerial);
  1294. exports.UnsupportedDependency = UnsupportedDependencySerial;
  1295. exports.map.set(UnsupportedDependency, UnsupportedDependencySerial);
  1296. exports.WebAssemblyImportDependency = WebAssemblyImportDependencySerial;
  1297. exports.map.set(WebAssemblyImportDependency, WebAssemblyImportDependencySerial);