@angular-architects/native-federation 1.0.0-beta.1 → 1.1.0-beta.0

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/README.md CHANGED
@@ -50,7 +50,7 @@ We migrated our webpack Module Federation example to Native Federation:
50
50
 
51
51
  ![Example](https://raw.githubusercontent.com/angular-architects/module-federation-plugin/main/libs/native-federation/example.png)
52
52
 
53
- Please find the example [here (branch: ng-solution)](https://github.com/manfredsteyer/module-federation-plugin-example/tree/nf-solution):
53
+ Please find the example [here (branch: nf-solution)](https://github.com/manfredsteyer/module-federation-plugin-example/tree/nf-solution):
54
54
 
55
55
  ```
56
56
  git clone https://github.com/manfredsteyer/module-federation-plugin-example.git --branch nf-solution
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular-architects/native-federation",
3
- "version": "1.0.0-beta.1",
3
+ "version": "1.1.0-beta.0",
4
4
  "main": "src/index.js",
5
5
  "generators": "./collection.json",
6
6
  "builders": "./builders.json",
@@ -23,8 +23,8 @@
23
23
  "rollup-plugin-node-externals": "^4.1.1",
24
24
  "esbuild": "^0.15.5",
25
25
  "@babel/core": "^7.19.0",
26
- "@softarc/native-federation": "1.0.0",
27
- "@softarc/native-federation-runtime": "1.0.0",
26
+ "@softarc/native-federation": "1.1.0",
27
+ "@softarc/native-federation-runtime": "1.1.0",
28
28
  "@rollup/plugin-json": "^4.1.0",
29
29
  "cross-spawn": "^7.0.3",
30
30
  "rollup-plugin-terser": "^7.0.2",
@@ -109,15 +109,15 @@ function updateIndexHtml(fedOptions) {
109
109
  const polyfillsName = fs
110
110
  .readdirSync(outputPath)
111
111
  .find((f) => f.startsWith('polyfills.') && f.endsWith('.js'));
112
- const htmlFragment = `
113
- <script type="esms-options">
114
- {
115
- "shimMode": true
116
- }
117
- </script>
118
-
119
- <script type="module" src="${polyfillsName}"></script>
120
- <script type="module-shim" src="${mainName}"></script>
112
+ const htmlFragment = `
113
+ <script type="esms-options">
114
+ {
115
+ "shimMode": true
116
+ }
117
+ </script>
118
+
119
+ <script type="module" src="${polyfillsName}"></script>
120
+ <script type="module-shim" src="${mainName}"></script>
121
121
  `;
122
122
  const indexContent = fs.readFileSync(indexPath, 'utf-8');
123
123
  const updatedContent = indexContent.replace('</body>', `${htmlFragment}</body>`);