@module-federation/esbuild 0.0.109 → 0.0.111

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.
Files changed (60) hide show
  1. package/dist/adapters/lib/collect-exports.js +15 -13
  2. package/dist/adapters/lib/collect-exports.mjs +0 -7
  3. package/dist/adapters/lib/commonjs.js +22 -25
  4. package/dist/adapters/lib/commonjs.mjs +13 -41
  5. package/dist/adapters/lib/containerPlugin.js +14 -13
  6. package/dist/adapters/lib/containerPlugin.mjs +1 -4
  7. package/dist/adapters/lib/containerReference.js +14 -13
  8. package/dist/adapters/lib/containerReference.mjs +1 -4
  9. package/dist/adapters/lib/lexer.js +17 -14
  10. package/dist/adapters/lib/lexer.mjs +0 -2
  11. package/dist/adapters/lib/linkRemotesPlugin.js +13 -11
  12. package/dist/adapters/lib/linkRemotesPlugin.mjs +0 -2
  13. package/dist/adapters/lib/manifest.js +17 -16
  14. package/dist/adapters/lib/manifest.mjs +4 -9
  15. package/dist/adapters/lib/plugin.js +16 -16
  16. package/dist/adapters/lib/plugin.mjs +8 -44
  17. package/dist/adapters/lib/react-replacements.js +19 -14
  18. package/dist/adapters/lib/react-replacements.mjs +1 -2
  19. package/dist/adapters/lib/transform.js +13 -11
  20. package/dist/adapters/lib/transform.mjs +4 -8
  21. package/dist/adapters/lib/utils.js +20 -16
  22. package/dist/adapters/lib/utils.mjs +1 -3
  23. package/dist/build.js +47 -46
  24. package/dist/build.mjs +1 -2
  25. package/dist/index.js +17 -13
  26. package/dist/index.mjs +2 -4
  27. package/dist/lib/config/configuration-context.js +19 -16
  28. package/dist/lib/config/configuration-context.mjs +0 -2
  29. package/dist/lib/config/federation-config.js +2 -4
  30. package/dist/lib/config/federation-config.mjs +1 -2
  31. package/dist/lib/config/share-utils.js +24 -23
  32. package/dist/lib/config/share-utils.mjs +1 -10
  33. package/dist/lib/config/with-native-federation.js +13 -11
  34. package/dist/lib/config/with-native-federation.mjs +0 -5
  35. package/dist/lib/core/build-adapter.js +13 -11
  36. package/dist/lib/core/build-adapter.mjs +0 -2
  37. package/dist/lib/core/createContainerTemplate.js +18 -14
  38. package/dist/lib/core/createContainerTemplate.mjs +0 -2
  39. package/dist/lib/core/default-skip-list.js +21 -17
  40. package/dist/lib/core/default-skip-list.mjs +0 -2
  41. package/dist/lib/core/federation-options.js +2 -4
  42. package/dist/lib/core/federation-options.mjs +1 -2
  43. package/dist/lib/core/get-externals.js +17 -14
  44. package/dist/lib/core/get-externals.mjs +0 -2
  45. package/dist/lib/core/load-federation-config.js +13 -11
  46. package/dist/lib/core/load-federation-config.mjs +4 -8
  47. package/dist/lib/core/write-federation-info.js +13 -11
  48. package/dist/lib/core/write-federation-info.mjs +4 -8
  49. package/dist/lib/utils/logger.js +15 -13
  50. package/dist/lib/utils/logger.mjs +0 -2
  51. package/dist/lib/utils/mapped-paths.js +14 -13
  52. package/dist/lib/utils/mapped-paths.mjs +8 -14
  53. package/dist/lib/utils/normalize.js +17 -14
  54. package/dist/lib/utils/normalize.mjs +0 -2
  55. package/dist/lib/utils/package-info.js +21 -20
  56. package/dist/lib/utils/package-info.mjs +35 -41
  57. package/dist/plugin.js +19 -18
  58. package/dist/plugin.mjs +1 -2
  59. package/dist/rslib-runtime.mjs +31 -0
  60. package/package.json +6 -5
@@ -9,7 +9,6 @@ const __rslib_import_meta_url__ = /*#__PURE__*/ (function () {
9
9
  // The require scope
10
10
  var __webpack_require__ = {};
11
11
 
12
- /************************************************************************/
13
12
  // webpack/runtime/compat_get_default_export
14
13
  (() => {
15
14
  // getDefaultExport function for compatibility with non-ESM modules
@@ -24,12 +23,16 @@ __webpack_require__.n = (module) => {
24
23
  })();
25
24
  // webpack/runtime/define_property_getters
26
25
  (() => {
27
- __webpack_require__.d = (exports, definition) => {
28
- for(var key in definition) {
29
- if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
30
- Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
31
- }
32
- }
26
+ __webpack_require__.d = (exports, getters, values) => {
27
+ var define = (defs, kind) => {
28
+ for(var key in defs) {
29
+ if(__webpack_require__.o(defs, key) && !__webpack_require__.o(exports, key)) {
30
+ Object.defineProperty(exports, key, { enumerable: true, [kind]: defs[key] });
31
+ }
32
+ }
33
+ };
34
+ define(getters, "get");
35
+ define(values, "value");
33
36
  };
34
37
  })();
35
38
  // webpack/runtime/has_own_property
@@ -46,7 +49,6 @@ __webpack_require__.r = (exports) => {
46
49
  Object.defineProperty(exports, '__esModule', { value: true });
47
50
  };
48
51
  })();
49
- /************************************************************************/
50
52
  var __webpack_exports__ = {};
51
53
  // ESM COMPAT FLAG
52
54
  __webpack_require__.r(__webpack_exports__);
@@ -69,7 +71,6 @@ const external_collect_exports_js_namespaceObject = require("./collect-exports.j
69
71
 
70
72
 
71
73
  const writeRemoteManifest = async (config, result)=>{
72
- var _result_metafile, _result_metafile1;
73
74
  if (result.errors && result.errors.length > 0) {
74
75
  console.warn('Build errors detected, skipping writeRemoteManifest.');
75
76
  return;
@@ -87,7 +88,7 @@ const writeRemoteManifest = async (config, result)=>{
87
88
  const envType = process.env['NODE_ENV'] === 'development' ? 'local' : process.env['NODE_ENV'] ?? '';
88
89
  const publicPath = config.publicPath || 'auto';
89
90
  let containerName = '';
90
- const outputMap = Object.entries(((_result_metafile = result.metafile) === null || _result_metafile === void 0 ? void 0 : _result_metafile.outputs) || {}).reduce((acc, [chunkKey, chunkValue])=>{
91
+ const outputMap = Object.entries(result.metafile?.outputs || {}).reduce((acc, [chunkKey, chunkValue])=>{
91
92
  const { entryPoint } = chunkValue;
92
93
  const key = entryPoint || chunkKey;
93
94
  if (key.startsWith('container:') && key.endsWith(config.filename)) {
@@ -100,7 +101,7 @@ const writeRemoteManifest = async (config, result)=>{
100
101
  return acc;
101
102
  }, {});
102
103
  if (!outputMap[containerName]) return;
103
- const outputMapWithoutExt = Object.entries(((_result_metafile1 = result.metafile) === null || _result_metafile1 === void 0 ? void 0 : _result_metafile1.outputs) || {}).reduce((acc, [chunkKey, chunkValue])=>{
104
+ const outputMapWithoutExt = Object.entries(result.metafile?.outputs || {}).reduce((acc, [chunkKey, chunkValue])=>{
104
105
  const { entryPoint } = chunkValue;
105
106
  const key = entryPoint || chunkKey;
106
107
  const trimKey = key.substring(0, key.lastIndexOf('.')) || key;
@@ -121,7 +122,7 @@ const writeRemoteManifest = async (config, result)=>{
121
122
  sync: []
122
123
  }
123
124
  };
124
- if (meta === null || meta === void 0 ? void 0 : meta.imports) {
125
+ if (meta?.imports) {
125
126
  meta.imports.forEach((imp)=>{
126
127
  const importMeta = outputMap[imp.path];
127
128
  if (importMeta && importMeta.kind !== 'dynamic-import') {
@@ -206,7 +207,7 @@ const writeRemoteManifest = async (config, result)=>{
206
207
  },
207
208
  types,
208
209
  globalName: config.name,
209
- pluginVersion: "0.0.109",
210
+ pluginVersion: "0.0.111",
210
211
  publicPath
211
212
  },
212
213
  shared,
@@ -218,9 +219,9 @@ const writeRemoteManifest = async (config, result)=>{
218
219
  };
219
220
 
220
221
  exports.writeRemoteManifest = __webpack_exports__.writeRemoteManifest;
221
- for(var __webpack_i__ in __webpack_exports__) {
222
- if(["writeRemoteManifest"].indexOf(__webpack_i__) === -1) {
223
- exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
222
+ for(var __rspack_i in __webpack_exports__) {
223
+ if(["writeRemoteManifest"].indexOf(__rspack_i) === -1) {
224
+ exports[__rspack_i] = __webpack_exports__[__rspack_i];
224
225
  }
225
226
  }
226
227
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -2,18 +2,13 @@ import fs from "fs";
2
2
  import path from "path";
3
3
  import { resolve } from "./collect-exports.mjs";
4
4
 
5
- ;// CONCATENATED MODULE: external "fs"
6
5
 
7
- ;// CONCATENATED MODULE: external "path"
8
6
 
9
- ;// CONCATENATED MODULE: external "./collect-exports.mjs"
10
7
 
11
- ;// CONCATENATED MODULE: ./src/adapters/lib/manifest.ts
12
8
 
13
9
 
14
10
 
15
11
  const writeRemoteManifest = async (config, result)=>{
16
- var _result_metafile, _result_metafile1;
17
12
  if (result.errors && result.errors.length > 0) {
18
13
  console.warn('Build errors detected, skipping writeRemoteManifest.');
19
14
  return;
@@ -31,7 +26,7 @@ const writeRemoteManifest = async (config, result)=>{
31
26
  const envType = process.env['NODE_ENV'] === 'development' ? 'local' : process.env['NODE_ENV'] ?? '';
32
27
  const publicPath = config.publicPath || 'auto';
33
28
  let containerName = '';
34
- const outputMap = Object.entries(((_result_metafile = result.metafile) === null || _result_metafile === void 0 ? void 0 : _result_metafile.outputs) || {}).reduce((acc, [chunkKey, chunkValue])=>{
29
+ const outputMap = Object.entries(result.metafile?.outputs || {}).reduce((acc, [chunkKey, chunkValue])=>{
35
30
  const { entryPoint } = chunkValue;
36
31
  const key = entryPoint || chunkKey;
37
32
  if (key.startsWith('container:') && key.endsWith(config.filename)) {
@@ -44,7 +39,7 @@ const writeRemoteManifest = async (config, result)=>{
44
39
  return acc;
45
40
  }, {});
46
41
  if (!outputMap[containerName]) return;
47
- const outputMapWithoutExt = Object.entries(((_result_metafile1 = result.metafile) === null || _result_metafile1 === void 0 ? void 0 : _result_metafile1.outputs) || {}).reduce((acc, [chunkKey, chunkValue])=>{
42
+ const outputMapWithoutExt = Object.entries(result.metafile?.outputs || {}).reduce((acc, [chunkKey, chunkValue])=>{
48
43
  const { entryPoint } = chunkValue;
49
44
  const key = entryPoint || chunkKey;
50
45
  const trimKey = key.substring(0, key.lastIndexOf('.')) || key;
@@ -65,7 +60,7 @@ const writeRemoteManifest = async (config, result)=>{
65
60
  sync: []
66
61
  }
67
62
  };
68
- if (meta === null || meta === void 0 ? void 0 : meta.imports) {
63
+ if (meta?.imports) {
69
64
  meta.imports.forEach((imp)=>{
70
65
  const importMeta = outputMap[imp.path];
71
66
  if (importMeta && importMeta.kind !== 'dynamic-import') {
@@ -150,7 +145,7 @@ const writeRemoteManifest = async (config, result)=>{
150
145
  },
151
146
  types,
152
147
  globalName: config.name,
153
- pluginVersion: "0.0.109",
148
+ pluginVersion: "0.0.111",
154
149
  publicPath
155
150
  },
156
151
  shared,
@@ -7,13 +7,12 @@ const __rslib_import_meta_url__ = /*#__PURE__*/ (function () {
7
7
  })();
8
8
  ;
9
9
  var __webpack_modules__ = ({
10
- "esbuild": (function (module) {
10
+ "esbuild"(module) {
11
11
  module.exports = require("esbuild");
12
12
 
13
- }),
13
+ },
14
14
 
15
15
  });
16
- /************************************************************************/
17
16
  // The module cache
18
17
  var __webpack_module_cache__ = {};
19
18
 
@@ -37,7 +36,6 @@ return module.exports;
37
36
 
38
37
  }
39
38
 
40
- /************************************************************************/
41
39
  // webpack/runtime/compat_get_default_export
42
40
  (() => {
43
41
  // getDefaultExport function for compatibility with non-ESM modules
@@ -52,12 +50,16 @@ __webpack_require__.n = (module) => {
52
50
  })();
53
51
  // webpack/runtime/define_property_getters
54
52
  (() => {
55
- __webpack_require__.d = (exports, definition) => {
56
- for(var key in definition) {
57
- if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
58
- Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
59
- }
60
- }
53
+ __webpack_require__.d = (exports, getters, values) => {
54
+ var define = (defs, kind) => {
55
+ for(var key in defs) {
56
+ if(__webpack_require__.o(defs, key) && !__webpack_require__.o(exports, key)) {
57
+ Object.defineProperty(exports, key, { enumerable: true, [kind]: defs[key] });
58
+ }
59
+ }
60
+ };
61
+ define(getters, "get");
62
+ define(values, "value");
61
63
  };
62
64
  })();
63
65
  // webpack/runtime/has_own_property
@@ -74,7 +76,6 @@ __webpack_require__.r = (exports) => {
74
76
  Object.defineProperty(exports, '__esModule', { value: true });
75
77
  };
76
78
  })();
77
- /************************************************************************/
78
79
  var __webpack_exports__ = {};
79
80
  // This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk.
80
81
  (() => {
@@ -137,13 +138,12 @@ const cjsToEsmPlugin = {
137
138
  filter: /.*/,
138
139
  namespace: 'esm-shares'
139
140
  }, async (args)=>{
140
- var _build_initialOptions_external;
141
141
  let esbuild_shim;
142
142
  const require_esbuild = ()=>// eslint-disable-next-line @typescript-eslint/no-require-imports
143
143
  build.esbuild || (esbuild_shim ||= __webpack_require__("esbuild"));
144
144
  const packageBuilder = await require_esbuild().build({
145
145
  ...build.initialOptions,
146
- external: (_build_initialOptions_external = build.initialOptions.external) === null || _build_initialOptions_external === void 0 ? void 0 : _build_initialOptions_external.filter((e)=>{
146
+ external: build.initialOptions.external?.filter((e)=>{
147
147
  if (e.includes('*')) {
148
148
  const prefix = e.split('*')[0];
149
149
  return !args.path.startsWith(prefix);
@@ -332,9 +332,9 @@ const moduleFederationPlugin = (config)=>({
332
332
  exports.createVirtualRemoteModule = __webpack_exports__.createVirtualRemoteModule;
333
333
  exports.createVirtualShareModule = __webpack_exports__.createVirtualShareModule;
334
334
  exports.moduleFederationPlugin = __webpack_exports__.moduleFederationPlugin;
335
- for(var __webpack_i__ in __webpack_exports__) {
336
- if(["createVirtualRemoteModule","createVirtualShareModule","moduleFederationPlugin"].indexOf(__webpack_i__) === -1) {
337
- exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
335
+ for(var __rspack_i in __webpack_exports__) {
336
+ if(["createVirtualRemoteModule","createVirtualShareModule","moduleFederationPlugin"].indexOf(__rspack_i) === -1) {
337
+ exports[__rspack_i] = __webpack_exports__[__rspack_i];
338
338
  }
339
339
  }
340
340
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1,4 +1,3 @@
1
- import * as __WEBPACK_EXTERNAL_MODULE_esbuild__ from "esbuild";
2
1
  import fs from "fs";
3
2
  import { getExports } from "./collect-exports.mjs";
4
3
  import path from "path";
@@ -8,60 +7,26 @@ import { initializeHostPlugin } from "./containerReference.mjs";
8
7
  import { linkRemotesPlugin } from "./linkRemotesPlugin.mjs";
9
8
  import { commonjs } from "./commonjs.mjs";
10
9
  import { getExternals } from "../../lib/core/get-externals.mjs";
11
- var __webpack_modules__ = ({
12
- "esbuild": (function (module) {
10
+ import { __webpack_require__ } from "../../rslib-runtime.mjs";
13
11
 
14
- module.exports = __WEBPACK_EXTERNAL_MODULE_esbuild__;
12
+ import * as __rspack_external_esbuild from "esbuild";
13
+ __webpack_require__.add({
14
+ "esbuild?ee69"(module) {
15
15
 
16
+ module.exports = __rspack_external_esbuild;
16
17
 
17
- }),
18
18
 
19
+ },
19
20
  });
20
- /************************************************************************/
21
- // The module cache
22
- var __webpack_module_cache__ = {};
23
21
 
24
- // The require function
25
- function __webpack_require__(moduleId) {
26
22
 
27
- // Check if module is in cache
28
- var cachedModule = __webpack_module_cache__[moduleId];
29
- if (cachedModule !== undefined) {
30
- return cachedModule.exports;
31
- }
32
- // Create a new module (and put it into the cache)
33
- var module = (__webpack_module_cache__[moduleId] = {
34
- exports: {}
35
- });
36
- // Execute the module function
37
- __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
38
-
39
- // Return the exports of the module
40
- return module.exports;
41
-
42
- }
43
-
44
- /************************************************************************/
45
-
46
- ;// CONCATENATED MODULE: external "fs"
47
-
48
- ;// CONCATENATED MODULE: external "./collect-exports.mjs"
49
-
50
- ;// CONCATENATED MODULE: external "path"
51
23
 
52
- ;// CONCATENATED MODULE: external "./manifest.mjs"
53
24
 
54
- ;// CONCATENATED MODULE: external "./containerPlugin.mjs"
55
25
 
56
- ;// CONCATENATED MODULE: external "./containerReference.mjs"
57
26
 
58
- ;// CONCATENATED MODULE: external "./linkRemotesPlugin.mjs"
59
27
 
60
- ;// CONCATENATED MODULE: external "./commonjs.mjs"
61
28
 
62
- ;// CONCATENATED MODULE: external "../../lib/core/get-externals.mjs"
63
29
 
64
- ;// CONCATENATED MODULE: ./src/adapters/lib/plugin.ts
65
30
 
66
31
 
67
32
 
@@ -90,13 +55,12 @@ const cjsToEsmPlugin = {
90
55
  filter: /.*/,
91
56
  namespace: 'esm-shares'
92
57
  }, async (args)=>{
93
- var _build_initialOptions_external;
94
58
  let esbuild_shim;
95
59
  const require_esbuild = ()=>// eslint-disable-next-line @typescript-eslint/no-require-imports
96
- build.esbuild || (esbuild_shim ||= __webpack_require__("esbuild"));
60
+ build.esbuild || (esbuild_shim ||= __webpack_require__("esbuild?ee69"));
97
61
  const packageBuilder = await require_esbuild().build({
98
62
  ...build.initialOptions,
99
- external: (_build_initialOptions_external = build.initialOptions.external) === null || _build_initialOptions_external === void 0 ? void 0 : _build_initialOptions_external.filter((e)=>{
63
+ external: build.initialOptions.external?.filter((e)=>{
100
64
  if (e.includes('*')) {
101
65
  const prefix = e.split('*')[0];
102
66
  return !args.path.startsWith(prefix);
@@ -6,18 +6,22 @@ const __rslib_import_meta_url__ = /*#__PURE__*/ (function () {
6
6
  new URL('main.js', document.baseURI).href;
7
7
  })();
8
8
  ;
9
+ "use strict"
9
10
  // The require scope
10
11
  var __webpack_require__ = {};
11
12
 
12
- /************************************************************************/
13
13
  // webpack/runtime/define_property_getters
14
14
  (() => {
15
- __webpack_require__.d = (exports, definition) => {
16
- for(var key in definition) {
17
- if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
18
- Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
19
- }
20
- }
15
+ __webpack_require__.d = (exports, getters, values) => {
16
+ var define = (defs, kind) => {
17
+ for(var key in defs) {
18
+ if(__webpack_require__.o(defs, key) && !__webpack_require__.o(exports, key)) {
19
+ Object.defineProperty(exports, key, { enumerable: true, [kind]: defs[key] });
20
+ }
21
+ }
22
+ };
23
+ define(getters, "get");
24
+ define(values, "value");
21
25
  };
22
26
  })();
23
27
  // webpack/runtime/has_own_property
@@ -34,12 +38,8 @@ __webpack_require__.r = (exports) => {
34
38
  Object.defineProperty(exports, '__esModule', { value: true });
35
39
  };
36
40
  })();
37
- /************************************************************************/
38
41
  var __webpack_exports__ = {};
39
42
  __webpack_require__.r(__webpack_exports__);
40
- __webpack_require__.d(__webpack_exports__, {
41
- reactReplacements: () => (reactReplacements)
42
- });
43
43
 
44
44
  const reactReplacements = {
45
45
  dev: {
@@ -72,10 +72,15 @@ const reactReplacements = {
72
72
  }
73
73
  };
74
74
 
75
+ __webpack_require__.d(__webpack_exports__, {
76
+ }, {
77
+ reactReplacements: reactReplacements
78
+ });
79
+
75
80
  exports.reactReplacements = __webpack_exports__.reactReplacements;
76
- for(var __webpack_i__ in __webpack_exports__) {
77
- if(["reactReplacements"].indexOf(__webpack_i__) === -1) {
78
- exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
81
+ for(var __rspack_i in __webpack_exports__) {
82
+ if(["reactReplacements"].indexOf(__rspack_i) === -1) {
83
+ exports[__rspack_i] = __webpack_exports__[__rspack_i];
79
84
  }
80
85
  }
81
86
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1,5 +1,4 @@
1
-
2
- ;// CONCATENATED MODULE: ./src/adapters/lib/react-replacements.ts
1
+ "use strict"
3
2
 
4
3
  const reactReplacements = {
5
4
  dev: {
@@ -9,15 +9,18 @@ const __rslib_import_meta_url__ = /*#__PURE__*/ (function () {
9
9
  // The require scope
10
10
  var __webpack_require__ = {};
11
11
 
12
- /************************************************************************/
13
12
  // webpack/runtime/define_property_getters
14
13
  (() => {
15
- __webpack_require__.d = (exports, definition) => {
16
- for(var key in definition) {
17
- if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
18
- Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
19
- }
20
- }
14
+ __webpack_require__.d = (exports, getters, values) => {
15
+ var define = (defs, kind) => {
16
+ for(var key in defs) {
17
+ if(__webpack_require__.o(defs, key) && !__webpack_require__.o(exports, key)) {
18
+ Object.defineProperty(exports, key, { enumerable: true, [kind]: defs[key] });
19
+ }
20
+ }
21
+ };
22
+ define(getters, "get");
23
+ define(values, "value");
21
24
  };
22
25
  })();
23
26
  // webpack/runtime/has_own_property
@@ -34,7 +37,6 @@ __webpack_require__.r = (exports) => {
34
37
  Object.defineProperty(exports, '__esModule', { value: true });
35
38
  };
36
39
  })();
37
- /************************************************************************/
38
40
  var __webpack_exports__ = {};
39
41
  // ESM COMPAT FLAG
40
42
  __webpack_require__.r(__webpack_exports__);
@@ -161,9 +163,9 @@ async function transform(input) {
161
163
  }
162
164
 
163
165
  exports.transform = __webpack_exports__.transform;
164
- for(var __webpack_i__ in __webpack_exports__) {
165
- if(["transform"].indexOf(__webpack_i__) === -1) {
166
- exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
166
+ for(var __rspack_i in __webpack_exports__) {
167
+ if(["transform"].indexOf(__rspack_i) === -1) {
168
+ exports[__rspack_i] = __webpack_exports__[__rspack_i];
167
169
  }
168
170
  }
169
171
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1,11 +1,7 @@
1
- import { build as external_esbuild_build } from "esbuild";
2
- import { extname as external_path_extname } from "path";
1
+ import * as __rspack_external_esbuild from "esbuild";
2
+ import * as __rspack_external_path from "path";
3
3
 
4
- ;// CONCATENATED MODULE: external "esbuild"
5
4
 
6
- ;// CONCATENATED MODULE: external "path"
7
-
8
- ;// CONCATENATED MODULE: ./src/adapters/lib/transform.ts
9
5
 
10
6
 
11
7
  const targets = {
@@ -27,7 +23,7 @@ async function transform(input) {
27
23
  throw new Error('<400> invalid target');
28
24
  }
29
25
  let loader = 'js';
30
- const extname = external_path_extname(input.filename);
26
+ const extname = __rspack_external_path.extname(input.filename);
31
27
  switch(extname){
32
28
  case '.jsx':
33
29
  loader = 'jsx';
@@ -107,7 +103,7 @@ async function transform(input) {
107
103
  }
108
104
  ]
109
105
  };
110
- const ret = await external_esbuild_build(opts);
106
+ const ret = await __rspack_external_esbuild.build(opts);
111
107
  if (ret.errors.length > 0) {
112
108
  throw new Error('<400> failed to validate code: ' + ret.errors[0].text);
113
109
  }
@@ -9,15 +9,18 @@ const __rslib_import_meta_url__ = /*#__PURE__*/ (function () {
9
9
  // The require scope
10
10
  var __webpack_require__ = {};
11
11
 
12
- /************************************************************************/
13
12
  // webpack/runtime/define_property_getters
14
13
  (() => {
15
- __webpack_require__.d = (exports, definition) => {
16
- for(var key in definition) {
17
- if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
18
- Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
19
- }
20
- }
14
+ __webpack_require__.d = (exports, getters, values) => {
15
+ var define = (defs, kind) => {
16
+ for(var key in defs) {
17
+ if(__webpack_require__.o(defs, key) && !__webpack_require__.o(exports, key)) {
18
+ Object.defineProperty(exports, key, { enumerable: true, [kind]: defs[key] });
19
+ }
20
+ }
21
+ };
22
+ define(getters, "get");
23
+ define(values, "value");
21
24
  };
22
25
  })();
23
26
  // webpack/runtime/has_own_property
@@ -34,14 +37,8 @@ __webpack_require__.r = (exports) => {
34
37
  Object.defineProperty(exports, '__esModule', { value: true });
35
38
  };
36
39
  })();
37
- /************************************************************************/
38
40
  var __webpack_exports__ = {};
39
41
  __webpack_require__.r(__webpack_exports__);
40
- __webpack_require__.d(__webpack_exports__, {
41
- cachedReduce: () => (cachedReduce),
42
- makeLegalIdentifier: () => (makeLegalIdentifier),
43
- orderedUniq: () => (orderedUniq)
44
- });
45
42
  function orderedUniq(array) {
46
43
  // prettier-ignore
47
44
  const ret = [], visited = new Set();
@@ -72,12 +69,19 @@ const makeLegalIdentifier = function makeLegalIdentifier(str) {
72
69
  return identifier || '_';
73
70
  };
74
71
 
72
+ __webpack_require__.d(__webpack_exports__, {
73
+ cachedReduce: () => (cachedReduce),
74
+ orderedUniq: () => (orderedUniq)
75
+ }, {
76
+ makeLegalIdentifier: makeLegalIdentifier
77
+ });
78
+
75
79
  exports.cachedReduce = __webpack_exports__.cachedReduce;
76
80
  exports.makeLegalIdentifier = __webpack_exports__.makeLegalIdentifier;
77
81
  exports.orderedUniq = __webpack_exports__.orderedUniq;
78
- for(var __webpack_i__ in __webpack_exports__) {
79
- if(["cachedReduce","makeLegalIdentifier","orderedUniq"].indexOf(__webpack_i__) === -1) {
80
- exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
82
+ for(var __rspack_i in __webpack_exports__) {
83
+ if(["cachedReduce","makeLegalIdentifier","orderedUniq"].indexOf(__rspack_i) === -1) {
84
+ exports[__rspack_i] = __webpack_exports__[__rspack_i];
81
85
  }
82
86
  }
83
87
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1,5 +1,3 @@
1
-
2
- ;// CONCATENATED MODULE: ./src/adapters/lib/utils.ts
3
1
  function orderedUniq(array) {
4
2
  // prettier-ignore
5
3
  const ret = [], visited = new Set();
@@ -30,4 +28,4 @@ const utils_makeLegalIdentifier = function makeLegalIdentifier(str) {
30
28
  return identifier || '_';
31
29
  };
32
30
 
33
- export { cachedReduce, utils_makeLegalIdentifier as makeLegalIdentifier, orderedUniq };
31
+ export { cachedReduce, orderedUniq, utils_makeLegalIdentifier as makeLegalIdentifier };