@softarc/native-federation-esbuild 1.1.1-beta.0 → 1.1.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.
package/package.json CHANGED
@@ -1,21 +1,22 @@
1
1
  {
2
2
  "name": "@softarc/native-federation-esbuild",
3
- "version": "1.1.1-beta.0",
3
+ "version": "1.1.2",
4
4
  "type": "commonjs",
5
5
  "dependencies": {
6
6
  "@rollup/plugin-commonjs": "^22.0.2",
7
7
  "@rollup/plugin-node-resolve": "^13.3.0",
8
8
  "@rollup/plugin-replace": "^4.0.0",
9
- "rollup": "^2.79.0",
10
- "rollup-plugin-node-externals": "^4.1.1",
9
+ "acorn": "^8.8.1",
11
10
  "esbuild": "^0.15.5",
12
11
  "npmlog": "^6.0.2",
13
- "acorn": "^8.8.1"
12
+ "process": "0.11.10",
13
+ "rollup": "^2.79.0",
14
+ "rollup-plugin-node-externals": "^4.1.1"
14
15
  },
15
- "main": "./src/index.js",
16
- "typings": "./src/index.d.ts",
17
16
  "peerDependencies": {
18
- "@softarc/native-federation": "1.1.1-beta.0",
19
- "@softarc/native-federation-runtime": "1.1.1-beta.0"
20
- }
17
+ "@softarc/native-federation": "1.1.2",
18
+ "@softarc/native-federation-runtime": "1.1.2"
19
+ },
20
+ "main": "./src/index.js",
21
+ "types": "./src/index.d.ts"
21
22
  }
package/src/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from './lib/adapter';
1
+ export * from './lib/adapter';
package/src/index.js CHANGED
@@ -1,5 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./lib/adapter"), exports);
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./lib/adapter"), exports);
5
5
  //# sourceMappingURL=index.js.map
@@ -1,13 +1,16 @@
1
- import { BuildAdapter, BuildAdapterOptions } from '@softarc/native-federation/build';
2
- import * as esbuild from 'esbuild';
3
- export declare const esBuildAdapter: BuildAdapter;
4
- export declare type ReplacementConfig = {
5
- file: string;
6
- };
7
- export interface EsBuildAdapterConfig {
8
- plugins: esbuild.Plugin[];
9
- fileReplacements?: Record<string, string | ReplacementConfig>;
10
- skipRollup?: boolean;
11
- compensateExports?: RegExp[];
12
- }
13
- export declare function createEsBuildAdapter(config: EsBuildAdapterConfig): (options: BuildAdapterOptions) => Promise<void>;
1
+ import { BuildAdapter, BuildAdapterOptions } from '@softarc/native-federation/build';
2
+ import * as esbuild from 'esbuild';
3
+ export declare const esBuildAdapter: BuildAdapter;
4
+ export type ReplacementConfig = {
5
+ file: string;
6
+ };
7
+ export interface EsBuildAdapterConfig {
8
+ plugins: esbuild.Plugin[];
9
+ fileReplacements?: Record<string, string | ReplacementConfig>;
10
+ skipRollup?: boolean;
11
+ compensateExports?: RegExp[];
12
+ loader?: {
13
+ [ext: string]: esbuild.Loader;
14
+ };
15
+ }
16
+ export declare function createEsBuildAdapter(config: EsBuildAdapterConfig): (options: BuildAdapterOptions) => Promise<void>;
@@ -1,131 +1,122 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createEsBuildAdapter = exports.esBuildAdapter = void 0;
4
- const tslib_1 = require("tslib");
5
- const build_1 = require("@softarc/native-federation/build");
6
- const esbuild = require("esbuild");
7
- const rollup_1 = require("rollup");
8
- const plugin_node_resolve_1 = require("@rollup/plugin-node-resolve");
9
- const rollup_plugin_node_externals_1 = require("rollup-plugin-node-externals");
10
- const collect_exports_1 = require("./collect-exports");
11
- const fs = require("fs");
12
- // eslint-disable-next-line @typescript-eslint/no-var-requires
13
- const commonjs = require('@rollup/plugin-commonjs');
14
- // eslint-disable-next-line @typescript-eslint/no-var-requires
15
- const replace = require('@rollup/plugin-replace');
16
- exports.esBuildAdapter = createEsBuildAdapter({
17
- plugins: [],
18
- });
19
- function createEsBuildAdapter(config) {
20
- if (!config.compensateExports) {
21
- config.compensateExports = [new RegExp('/react/')];
22
- }
23
- return (options) => tslib_1.__awaiter(this, void 0, void 0, function* () {
24
- var _a;
25
- const { entryPoint, external, outfile, watch } = options;
26
- const isPkg = entryPoint.includes('node_modules');
27
- const pkgName = isPkg ? inferePkgName(entryPoint) : '';
28
- const tmpFolder = `node_modules/.tmp/${pkgName}`;
29
- if (isPkg) {
30
- yield prepareNodePackage(entryPoint, external, tmpFolder, config);
31
- }
32
- yield esbuild.build({
33
- entryPoints: [isPkg ? tmpFolder : entryPoint],
34
- external,
35
- outfile,
36
- bundle: true,
37
- sourcemap: true,
38
- minify: true,
39
- watch: !watch
40
- ? false
41
- : {
42
- onRebuild: (err) => {
43
- if (err) {
44
- build_1.logger.error('Error rebuilding ' + entryPoint);
45
- }
46
- else {
47
- build_1.logger.info('Rebuilt ' + entryPoint);
48
- }
49
- },
50
- },
51
- format: 'esm',
52
- target: ['esnext'],
53
- plugins: [...config.plugins],
54
- });
55
- const normEntryPoint = entryPoint.replace(/\\/g, '/');
56
- if (isPkg && ((_a = config === null || config === void 0 ? void 0 : config.compensateExports) === null || _a === void 0 ? void 0 : _a.find(regExp => regExp.exec(normEntryPoint)))) {
57
- build_1.logger.verbose('compensate exports for ' + tmpFolder);
58
- compensateExports(tmpFolder, outfile);
59
- }
60
- });
61
- }
62
- exports.createEsBuildAdapter = createEsBuildAdapter;
63
- function compensateExports(entryPoint, outfile) {
64
- const inExports = (0, collect_exports_1.collectExports)(entryPoint);
65
- const outExports = outfile ? (0, collect_exports_1.collectExports)(outfile) : inExports;
66
- if (!outExports.hasDefaultExport || outExports.hasFurtherExports) {
67
- return;
68
- }
69
- const defaultName = outExports.defaultExportName;
70
- let exports = '/*Try to compensate missing exports*/\n\n';
71
- for (const exp of inExports.exports) {
72
- exports += `let ${exp}$softarc = ${defaultName}.${exp};\n`;
73
- exports += `export { ${exp}$softarc as ${exp} };\n`;
74
- }
75
- const target = outfile !== null && outfile !== void 0 ? outfile : entryPoint;
76
- fs.appendFileSync(target, exports, 'utf-8');
77
- }
78
- function prepareNodePackage(entryPoint, external, tmpFolder, config) {
79
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
80
- if (config.fileReplacements) {
81
- entryPoint = replaceEntryPoint(entryPoint, normalize(config.fileReplacements));
82
- }
83
- const result = yield (0, rollup_1.rollup)({
84
- input: entryPoint,
85
- plugins: [
86
- commonjs(),
87
- (0, rollup_plugin_node_externals_1.externals)({ include: external }),
88
- (0, plugin_node_resolve_1.default)(),
89
- replace({
90
- preventAssignment: true,
91
- values: {
92
- 'process.env.NODE_ENV': '"development"',
93
- },
94
- }),
95
- ],
96
- });
97
- yield result.write({
98
- format: 'esm',
99
- file: tmpFolder,
100
- sourcemap: true,
101
- exports: 'named',
102
- });
103
- });
104
- }
105
- function inferePkgName(entryPoint) {
106
- return entryPoint
107
- .replace(/.*?node_modules/g, '')
108
- .replace(/[^A-Za-z0-9.]/g, '_');
109
- }
110
- function normalize(config) {
111
- const result = {};
112
- for (const key in config) {
113
- if (typeof config[key] === 'string') {
114
- result[key] = {
115
- file: config[key],
116
- };
117
- }
118
- else {
119
- result[key] = config[key];
120
- }
121
- }
122
- return result;
123
- }
124
- function replaceEntryPoint(entryPoint, fileReplacements) {
125
- entryPoint = entryPoint.replace(/\\/g, '/');
126
- for (const key in fileReplacements) {
127
- entryPoint = entryPoint.replace(new RegExp(`${key}$`), fileReplacements[key].file);
128
- }
129
- return entryPoint;
130
- }
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createEsBuildAdapter = exports.esBuildAdapter = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const build_1 = require("@softarc/native-federation/build");
6
+ const esbuild = tslib_1.__importStar(require("esbuild"));
7
+ const rollup_1 = require("rollup");
8
+ const plugin_node_resolve_1 = tslib_1.__importDefault(require("@rollup/plugin-node-resolve"));
9
+ const rollup_plugin_node_externals_1 = require("rollup-plugin-node-externals");
10
+ const collect_exports_1 = require("./collect-exports");
11
+ const fs = tslib_1.__importStar(require("fs"));
12
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
13
+ const commonjs = require('@rollup/plugin-commonjs');
14
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
15
+ const replace = require('@rollup/plugin-replace');
16
+ exports.esBuildAdapter = createEsBuildAdapter({
17
+ plugins: [],
18
+ });
19
+ function createEsBuildAdapter(config) {
20
+ if (!config.compensateExports) {
21
+ config.compensateExports = [new RegExp('/react/')];
22
+ }
23
+ return (options) => tslib_1.__awaiter(this, void 0, void 0, function* () {
24
+ var _a;
25
+ const { entryPoint, external, outfile, watch } = options;
26
+ const isPkg = entryPoint.includes('node_modules');
27
+ const pkgName = isPkg ? inferePkgName(entryPoint) : '';
28
+ const tmpFolder = `node_modules/.tmp/${pkgName}`;
29
+ if (isPkg) {
30
+ yield prepareNodePackage(entryPoint, external, tmpFolder, config, !!options.dev);
31
+ }
32
+ yield esbuild.build({
33
+ entryPoints: [isPkg ? tmpFolder : entryPoint],
34
+ external,
35
+ outfile,
36
+ loader: config.loader,
37
+ bundle: true,
38
+ sourcemap: options.dev,
39
+ minify: !options.dev,
40
+ format: 'esm',
41
+ target: ['esnext'],
42
+ plugins: [...config.plugins],
43
+ });
44
+ const normEntryPoint = entryPoint.replace(/\\/g, '/');
45
+ if (isPkg &&
46
+ ((_a = config === null || config === void 0 ? void 0 : config.compensateExports) === null || _a === void 0 ? void 0 : _a.find((regExp) => regExp.exec(normEntryPoint)))) {
47
+ build_1.logger.verbose('compensate exports for ' + tmpFolder);
48
+ compensateExports(tmpFolder, outfile);
49
+ }
50
+ });
51
+ }
52
+ exports.createEsBuildAdapter = createEsBuildAdapter;
53
+ function compensateExports(entryPoint, outfile) {
54
+ const inExports = (0, collect_exports_1.collectExports)(entryPoint);
55
+ const outExports = outfile ? (0, collect_exports_1.collectExports)(outfile) : inExports;
56
+ if (!outExports.hasDefaultExport || outExports.hasFurtherExports) {
57
+ return;
58
+ }
59
+ const defaultName = outExports.defaultExportName;
60
+ let exports = '/*Try to compensate missing exports*/\n\n';
61
+ for (const exp of inExports.exports) {
62
+ exports += `let ${exp}$softarc = ${defaultName}.${exp};\n`;
63
+ exports += `export { ${exp}$softarc as ${exp} };\n`;
64
+ }
65
+ const target = outfile !== null && outfile !== void 0 ? outfile : entryPoint;
66
+ fs.appendFileSync(target, exports, 'utf-8');
67
+ }
68
+ function prepareNodePackage(entryPoint, external, tmpFolder, config, dev) {
69
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
70
+ if (config.fileReplacements) {
71
+ entryPoint = replaceEntryPoint(entryPoint, normalize(config.fileReplacements));
72
+ }
73
+ const env = dev ? 'development' : 'production';
74
+ const result = yield (0, rollup_1.rollup)({
75
+ input: entryPoint,
76
+ plugins: [
77
+ commonjs(),
78
+ (0, rollup_plugin_node_externals_1.externals)({ include: external }),
79
+ (0, plugin_node_resolve_1.default)(),
80
+ replace({
81
+ preventAssignment: true,
82
+ values: {
83
+ 'process.env.NODE_ENV': `"${env}"`,
84
+ },
85
+ }),
86
+ ],
87
+ });
88
+ yield result.write({
89
+ format: 'esm',
90
+ file: tmpFolder,
91
+ sourcemap: dev,
92
+ exports: 'named',
93
+ });
94
+ });
95
+ }
96
+ function inferePkgName(entryPoint) {
97
+ return entryPoint
98
+ .replace(/.*?node_modules/g, '')
99
+ .replace(/[^A-Za-z0-9.]/g, '_');
100
+ }
101
+ function normalize(config) {
102
+ const result = {};
103
+ for (const key in config) {
104
+ if (typeof config[key] === 'string') {
105
+ result[key] = {
106
+ file: config[key],
107
+ };
108
+ }
109
+ else {
110
+ result[key] = config[key];
111
+ }
112
+ }
113
+ return result;
114
+ }
115
+ function replaceEntryPoint(entryPoint, fileReplacements) {
116
+ entryPoint = entryPoint.replace(/\\/g, '/');
117
+ for (const key in fileReplacements) {
118
+ entryPoint = entryPoint.replace(new RegExp(`${key}$`), fileReplacements[key].file);
119
+ }
120
+ return entryPoint;
121
+ }
131
122
  //# sourceMappingURL=adapter.js.map
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gBAAgB,EAAE,GAAG,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,SAAS,CAAC,MAAkD;IACnE,MAAM,MAAM,GAAqC,EAAE,CAAC;IACpD,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE;QACxB,IAAI,OAAO,MAAM,CAAC,GAAG,CAAC,KAAK,QAAQ,EAAE;YACnC,MAAM,CAAC,GAAG,CAAC,GAAG;gBACZ,IAAI,EAAE,MAAM,CAAC,GAAG,CAAW;aAC5B,CAAA;SACF;aACI;YACH,MAAM,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAsB,CAAC;SAChD;KACF;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,SAAS,iBAAiB,CAAC,UAAkB,EAAE,gBAAmD;IAChG,UAAU,GAAG,UAAU,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IAE5C,KAAI,MAAM,GAAG,IAAI,gBAAgB,EAAE;QACjC,UAAU,GAAG,UAAU,CAAC,OAAO,CAAC,IAAI,MAAM,CAAC,GAAG,GAAG,GAAG,CAAC,EAAE,gBAAgB,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC;KACpF;IAED,OAAO,UAAU,CAAC;AACpB,CAAC"}
1
+ {"version":3,"file":"adapter.js","sourceRoot":"","sources":["../../../../../libs/native-federation-esbuild/src/lib/adapter.ts"],"names":[],"mappings":";;;;AAAA,4DAI0C;AAC1C,yDAAmC;AACnC,mCAAgC;AAChC,8FAAkD;AAClD,+EAAyD;AACzD,uDAAmD;AACnD,+CAAyB;AAEzB,8DAA8D;AAC9D,MAAM,QAAQ,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAAC;AAEpD,8DAA8D;AAC9D,MAAM,OAAO,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC;AAErC,QAAA,cAAc,GAAiB,oBAAoB,CAAC;IAC/D,OAAO,EAAE,EAAE;CACZ,CAAC,CAAC;AAcH,SAAgB,oBAAoB,CAAC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K,MAAM,GAAG,IAAI,gBAAgB,EAAE;QAClC,UAAU,GAAG,UAAU,CAAC,OAAO,CAC7B,IAAI,MAAM,CAAC,GAAG,GAAG,GAAG,CAAC,EACrB,gBAAgB,CAAC,GAAG,CAAC,CAAC,IAAI,CAC3B,CAAC;KACH;IAED,OAAO,UAAU,CAAC;AACpB,CAAC"}
@@ -1,6 +1,6 @@
1
- export declare function collectExports(path: string): {
2
- hasDefaultExport: boolean;
3
- hasFurtherExports: boolean;
4
- defaultExportName: string;
5
- exports: string[];
6
- };
1
+ export declare function collectExports(path: string): {
2
+ hasDefaultExport: boolean;
3
+ hasFurtherExports: boolean;
4
+ defaultExportName: string;
5
+ exports: string[];
6
+ };
@@ -1,72 +1,73 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.collectExports = void 0;
4
- const fs = require("fs");
5
- const acorn_1 = require("acorn");
6
- function collectExports(path) {
7
- const src = fs.readFileSync(path, "utf8");
8
- const parseTree = (0, acorn_1.parse)(src, {
9
- ecmaVersion: "latest",
10
- allowHashBang: true,
11
- sourceType: "module",
12
- });
13
- let hasDefaultExport = false;
14
- let hasFurtherExports = false;
15
- let defaultExportName = "";
16
- const exports = new Set();
17
- traverse(parseTree, (node) => {
18
- var _a, _b, _c, _d;
19
- if (node.type === "AssignmentExpression" &&
20
- ((_b = (_a = node === null || node === void 0 ? void 0 : node.left) === null || _a === void 0 ? void 0 : _a.object) === null || _b === void 0 ? void 0 : _b.name) === "exports" // &&
21
- ) {
22
- exports.add((_c = node.left.property) === null || _c === void 0 ? void 0 : _c.name);
23
- return;
24
- }
25
- if (hasDefaultExport && hasFurtherExports) {
26
- return;
27
- }
28
- if (node.type !== "ExportNamedDeclaration") {
29
- return;
30
- }
31
- if (!node.specifiers) {
32
- hasFurtherExports = true;
33
- return;
34
- }
35
- for (const s of node.specifiers) {
36
- if (isDefaultExport(s)) {
37
- defaultExportName = (_d = s === null || s === void 0 ? void 0 : s.local) === null || _d === void 0 ? void 0 : _d.name;
38
- hasDefaultExport = true;
39
- }
40
- else {
41
- hasFurtherExports = true;
42
- }
43
- }
44
- });
45
- return {
46
- hasDefaultExport,
47
- hasFurtherExports,
48
- defaultExportName,
49
- exports: [...exports],
50
- };
51
- }
52
- exports.collectExports = collectExports;
53
- function traverse(node, visit) {
54
- visit(node);
55
- for (const key in node) {
56
- const prop = node[key];
57
- if (prop && typeof prop === "object") {
58
- traverse(prop, visit);
59
- }
60
- else if (Array.isArray(prop)) {
61
- for (const sub of prop) {
62
- traverse(sub, visit);
63
- }
64
- }
65
- }
66
- }
67
- function isDefaultExport(exportSpecifier) {
68
- var _a, _b;
69
- return (((_a = exportSpecifier.exported) === null || _a === void 0 ? void 0 : _a.type) === "Identifier" &&
70
- ((_b = exportSpecifier.exported) === null || _b === void 0 ? void 0 : _b.name) === "default");
71
- }
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.collectExports = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const fs = tslib_1.__importStar(require("fs"));
6
+ const acorn_1 = require("acorn");
7
+ function collectExports(path) {
8
+ const src = fs.readFileSync(path, 'utf8');
9
+ const parseTree = (0, acorn_1.parse)(src, {
10
+ ecmaVersion: 'latest',
11
+ allowHashBang: true,
12
+ sourceType: 'module',
13
+ });
14
+ let hasDefaultExport = false;
15
+ let hasFurtherExports = false;
16
+ let defaultExportName = '';
17
+ const exports = new Set();
18
+ traverse(parseTree, (node) => {
19
+ var _a, _b, _c, _d;
20
+ if (node.type === 'AssignmentExpression' &&
21
+ ((_b = (_a = node === null || node === void 0 ? void 0 : node.left) === null || _a === void 0 ? void 0 : _a.object) === null || _b === void 0 ? void 0 : _b.name) === 'exports' // &&
22
+ ) {
23
+ exports.add((_c = node.left.property) === null || _c === void 0 ? void 0 : _c.name);
24
+ return;
25
+ }
26
+ if (hasDefaultExport && hasFurtherExports) {
27
+ return;
28
+ }
29
+ if (node.type !== 'ExportNamedDeclaration') {
30
+ return;
31
+ }
32
+ if (!node.specifiers) {
33
+ hasFurtherExports = true;
34
+ return;
35
+ }
36
+ for (const s of node.specifiers) {
37
+ if (isDefaultExport(s)) {
38
+ defaultExportName = (_d = s === null || s === void 0 ? void 0 : s.local) === null || _d === void 0 ? void 0 : _d.name;
39
+ hasDefaultExport = true;
40
+ }
41
+ else {
42
+ hasFurtherExports = true;
43
+ }
44
+ }
45
+ });
46
+ return {
47
+ hasDefaultExport,
48
+ hasFurtherExports,
49
+ defaultExportName,
50
+ exports: [...exports],
51
+ };
52
+ }
53
+ exports.collectExports = collectExports;
54
+ function traverse(node, visit) {
55
+ visit(node);
56
+ for (const key in node) {
57
+ const prop = node[key];
58
+ if (prop && typeof prop === 'object') {
59
+ traverse(prop, visit);
60
+ }
61
+ else if (Array.isArray(prop)) {
62
+ for (const sub of prop) {
63
+ traverse(sub, visit);
64
+ }
65
+ }
66
+ }
67
+ }
68
+ function isDefaultExport(exportSpecifier) {
69
+ var _a, _b;
70
+ return (((_a = exportSpecifier.exported) === null || _a === void 0 ? void 0 : _a.type) === 'Identifier' &&
71
+ ((_b = exportSpecifier.exported) === null || _b === void 0 ? void 0 : _b.name) === 'default');
72
+ }
72
73
  //# sourceMappingURL=collect-exports.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"collect-exports.js","sourceRoot":"","sources":["../../../../../libs/native-federation-esbuild/src/lib/collect-exports.ts"],"names":[],"mappings":";;;AAAA,yBAAyB;AACzB,iCAA8B;AAM9B,SAAgB,cAAc,CAAC,IAAY;IACzC,MAAM,GAAG,GAAG,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IAE1C,MAAM,SAAS,GAAG,IAAA,aAAK,EAAC,GAAG,EAAE;QAC3B,WAAW,EAAE,QAAQ;QACrB,aAAa,EAAE,IAAI;QACnB,UAAU,EAAE,QAAQ;KACrB,CAAC,CAAC;IAEH,IAAI,gBAAgB,GAAG,KAAK,CAAC;IAC7B,IAAI,iBAAiB,GAAG,K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,EAAE,KAAK,CAAC,CAAC;aACtB;SACF;KACF;AACH,CAAC;AAED,SAAS,eAAe,CAAC,eAAqB;;IAC5C,OAAO,CACL,CAAA,MAAA,eAAe,CAAC,QAAQ,0CAAE,IAAI,MAAK,YAAY;QAC/C,CAAA,MAAA,eAAe,CAAC,QAAQ,0CAAE,IAAI,MAAK,SAAS,CAC7C,CAAC;AACJ,CAAC"}
@@ -1,2 +1,2 @@
1
- import { ReplacementConfig } from './adapter';
2
- export declare const reactReplacements: Record<string, Record<string, ReplacementConfig>>;
1
+ import { ReplacementConfig } from './adapter';
2
+ export declare const reactReplacements: Record<string, Record<string, ReplacementConfig>>;
@@ -1,28 +1,34 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.reactReplacements = void 0;
4
- exports.reactReplacements = {
5
- dev: {
6
- 'node_modules/react/index.js': {
7
- file: 'node_modules/react/cjs/react.development.js',
8
- },
9
- 'node_modules/react/jsx-dev-runtime.js': {
10
- file: 'node_modules/react/cjs/react-jsx-dev-runtime.development.js',
11
- },
12
- 'node_modules/react/jsx-runtime.js': {
13
- file: 'node_modules/react/cjs/react-jsx-runtime.development.js',
14
- },
15
- },
16
- prod: {
17
- 'node_modules/react/index.js': {
18
- file: 'node_modules/react/cjs/react.production.min.js',
19
- },
20
- 'node_modules/react/jsx-dev-runtime.js': {
21
- file: 'node_modules/react/cjs/react-jsx-dev-runtime.production.min.js',
22
- },
23
- 'node_modules/react/jsx-runtime.js': {
24
- file: 'node_modules/react/cjs/react-jsx-runtime.production.min.js',
25
- },
26
- },
27
- };
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.reactReplacements = void 0;
4
+ exports.reactReplacements = {
5
+ dev: {
6
+ 'node_modules/react/index.js': {
7
+ file: 'node_modules/react/cjs/react.development.js',
8
+ },
9
+ 'node_modules/react/jsx-dev-runtime.js': {
10
+ file: 'node_modules/react/cjs/react-jsx-dev-runtime.development.js',
11
+ },
12
+ 'node_modules/react/jsx-runtime.js': {
13
+ file: 'node_modules/react/cjs/react-jsx-runtime.development.js',
14
+ },
15
+ 'node_modules/react-dom/index.js': {
16
+ file: 'node_modules/react-dom/cjs/react-dom.development.js',
17
+ },
18
+ },
19
+ prod: {
20
+ 'node_modules/react/index.js': {
21
+ file: 'node_modules/react/cjs/react.production.min.js',
22
+ },
23
+ 'node_modules/react/jsx-dev-runtime.js': {
24
+ file: 'node_modules/react/cjs/react-jsx-dev-runtime.production.min.js',
25
+ },
26
+ 'node_modules/react/jsx-runtime.js': {
27
+ file: 'node_modules/react/cjs/react-jsx-runtime.production.min.js',
28
+ },
29
+ 'node_modules/react-dom/index.js': {
30
+ file: 'node_modules/react-dom/cjs/react-dom.production.min.js',
31
+ },
32
+ },
33
+ };
28
34
  //# sourceMappingURL=react-replacements.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"react-replacements.js","sourceRoot":"","sources":["../../../../../libs/native-federation-esbuild/src/lib/react-replacements.ts"],"names":[],"mappings":";;;AAEa,QAAA,iBAAiB,GAG1B;IACF,GAAG,EAAE;QACH,6BAA6B,EAAE;YAC7B,IAAI,EAAE,6CAA6C;SACpD;QACD,uCAAuC,EAAE;YACvC,IAAI,EAAE,6DAA6D;SACpE;QACD,mCAAmC,EAAE;YACnC,IAAI,EAAE,yDAAyD;SAChE;KACF;IACD,IAAI,EAAE;QACJ,6BAA6B,EAAE;YAC7B,IAAI,EAAE,gDAAgD;SACvD;QACD,uCAAuC,EAAE;YACvC,IAAI,EAAE,gEAAgE;SACvE;QACD,mCAAmC,EAAE;YACnC,IAAI,EAAE,4DAA4D;SACnE;KACF;CACF,CAAC"}
1
+ {"version":3,"file":"react-replacements.js","sourceRoot":"","sources":["../../../../../libs/native-federation-esbuild/src/lib/react-replacements.ts"],"names":[],"mappings":";;;AAEa,QAAA,iBAAiB,GAG1B;IACF,GAAG,EAAE;QACH,6BAA6B,EAAE;YAC7B,IAAI,EAAE,6CAA6C;SACpD;QACD,uCAAuC,EAAE;YACvC,IAAI,EAAE,6DAA6D;SACpE;QACD,mCAAmC,EAAE;YACnC,IAAI,EAAE,yDAAyD;SAChE;QACD,iCAAiC,EAAE;YACjC,IAAI,EAAE,qDAAqD;SAC5D;KACF;IACD,IAAI,EAAE;QACJ,6BAA6B,EAAE;YAC7B,IAAI,EAAE,gDAAgD;SACvD;QACD,uCAAuC,EAAE;YACvC,IAAI,EAAE,gEAAgE;SACvE;QACD,mCAAmC,EAAE;YACnC,IAAI,EAAE,4DAA4D;SACnE;QACD,iCAAiC,EAAE;YACjC,IAAI,EAAE,wDAAwD;SAC/D;KACF;CACF,CAAC"}