@module-federation/native-federation-typescript 0.3.1 → 0.4.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 +22 -0
- package/dist/CHANGELOG.md +6 -0
- package/dist/README.md +22 -0
- package/dist/package.json +2 -2
- package/dist/rolldown.d.mts +6 -0
- package/dist/rolldown.d.ts +6 -0
- package/dist/rolldown.js +1 -0
- package/dist/rolldown.mjs +1 -0
- package/dist/webpack.d.mts +3 -2
- package/dist/webpack.d.ts +3 -2
- package/dist/webpack.js +1 -1
- package/dist/webpack.mjs +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -174,6 +174,28 @@ module.exports = {
|
|
|
174
174
|
<br>
|
|
175
175
|
</details>
|
|
176
176
|
|
|
177
|
+
<details>
|
|
178
|
+
<summary>Rolldown</summary><br>
|
|
179
|
+
|
|
180
|
+
```ts
|
|
181
|
+
// rolldown.config.js
|
|
182
|
+
import { NativeFederationTypeScriptHost, NativeFederationTypeScriptRemote } from '@module-federation/native-federation-typescript/rolldown';
|
|
183
|
+
|
|
184
|
+
export default {
|
|
185
|
+
plugins: [
|
|
186
|
+
NativeFederationTypeScriptRemote({
|
|
187
|
+
/* options */
|
|
188
|
+
}),
|
|
189
|
+
NativeFederationTypeScriptHost({
|
|
190
|
+
/* options */
|
|
191
|
+
}),
|
|
192
|
+
],
|
|
193
|
+
};
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
<br>
|
|
197
|
+
</details>
|
|
198
|
+
|
|
177
199
|
## TypeScript configuration
|
|
178
200
|
|
|
179
201
|
To have the type definitions automatically found for imports, add paths to the `compilerOptions` in the `tsconfig.json`:
|
package/dist/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# [1.0.0-canary.1](https://github.com/module-federation/universe/compare/native-federation-typescript-0.2.6...native-federation-typescript-1.0.0-canary.1) (2023-11-06)
|
|
2
2
|
|
|
3
|
+
## 0.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- b152df2: feat: rolldown support
|
|
8
|
+
|
|
3
9
|
## 0.3.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/README.md
CHANGED
|
@@ -174,6 +174,28 @@ module.exports = {
|
|
|
174
174
|
<br>
|
|
175
175
|
</details>
|
|
176
176
|
|
|
177
|
+
<details>
|
|
178
|
+
<summary>Rolldown</summary><br>
|
|
179
|
+
|
|
180
|
+
```ts
|
|
181
|
+
// rolldown.config.js
|
|
182
|
+
import { NativeFederationTypeScriptHost, NativeFederationTypeScriptRemote } from '@module-federation/native-federation-typescript/rolldown';
|
|
183
|
+
|
|
184
|
+
export default {
|
|
185
|
+
plugins: [
|
|
186
|
+
NativeFederationTypeScriptRemote({
|
|
187
|
+
/* options */
|
|
188
|
+
}),
|
|
189
|
+
NativeFederationTypeScriptHost({
|
|
190
|
+
/* options */
|
|
191
|
+
}),
|
|
192
|
+
],
|
|
193
|
+
};
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
<br>
|
|
197
|
+
</details>
|
|
198
|
+
|
|
177
199
|
## TypeScript configuration
|
|
178
200
|
|
|
179
201
|
To have the type definitions automatically found for imports, add paths to the `compilerOptions` in the `tsconfig.json`:
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/native-federation-typescript",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Bundler agnostic unplugin to share federated types",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"module federation",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"ansi-colors": "^4.1.3",
|
|
57
57
|
"axios": "^1.6.7",
|
|
58
58
|
"rambda": "^9.1.0",
|
|
59
|
-
"unplugin": "^1.
|
|
59
|
+
"unplugin": "^1.9.0"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
62
|
"typescript": "^4.9.0 || ^5.0.0",
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { R as RemoteOptions, H as HostOptions } from './RemoteOptions-8173ef89.js';
|
|
2
|
+
|
|
3
|
+
declare const NativeFederationTypeScriptRemote: (options: RemoteOptions) => any;
|
|
4
|
+
declare const NativeFederationTypeScriptHost: (options: HostOptions) => any;
|
|
5
|
+
|
|
6
|
+
export { NativeFederationTypeScriptHost, NativeFederationTypeScriptRemote };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { R as RemoteOptions, H as HostOptions } from './RemoteOptions-8173ef89.js';
|
|
2
|
+
|
|
3
|
+
declare const NativeFederationTypeScriptRemote: (options: RemoteOptions) => any;
|
|
4
|
+
declare const NativeFederationTypeScriptHost: (options: HostOptions) => any;
|
|
5
|
+
|
|
6
|
+
export { NativeFederationTypeScriptHost, NativeFederationTypeScriptRemote };
|
package/dist/rolldown.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkIDWEZ3WPjs = require('./chunk-IDWEZ3WP.js');var r=_chunkIDWEZ3WPjs.a.rolldown,i= exports.NativeFederationTypeScriptHost =_chunkIDWEZ3WPjs.b.rolldown;exports.NativeFederationTypeScriptHost = i; exports.NativeFederationTypeScriptRemote = r;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,b as t}from"./chunk-MSWS7NCK.mjs";var r=e.rolldown,i=t.rolldown;export{i as NativeFederationTypeScriptHost,r as NativeFederationTypeScriptRemote};
|
package/dist/webpack.d.mts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { WebpackPluginInstance } from 'unplugin';
|
|
1
2
|
import { R as RemoteOptions, H as HostOptions } from './RemoteOptions-8173ef89.js';
|
|
2
3
|
|
|
3
|
-
declare const NativeFederationTypeScriptRemote: (options: RemoteOptions) =>
|
|
4
|
-
declare const NativeFederationTypeScriptHost: (options: HostOptions) =>
|
|
4
|
+
declare const NativeFederationTypeScriptRemote: (options: RemoteOptions) => WebpackPluginInstance;
|
|
5
|
+
declare const NativeFederationTypeScriptHost: (options: HostOptions) => WebpackPluginInstance;
|
|
5
6
|
|
|
6
7
|
export { NativeFederationTypeScriptHost, NativeFederationTypeScriptRemote };
|
package/dist/webpack.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { WebpackPluginInstance } from 'unplugin';
|
|
1
2
|
import { R as RemoteOptions, H as HostOptions } from './RemoteOptions-8173ef89.js';
|
|
2
3
|
|
|
3
|
-
declare const NativeFederationTypeScriptRemote: (options: RemoteOptions) =>
|
|
4
|
-
declare const NativeFederationTypeScriptHost: (options: HostOptions) =>
|
|
4
|
+
declare const NativeFederationTypeScriptRemote: (options: RemoteOptions) => WebpackPluginInstance;
|
|
5
|
+
declare const NativeFederationTypeScriptHost: (options: HostOptions) => WebpackPluginInstance;
|
|
5
6
|
|
|
6
7
|
export { NativeFederationTypeScriptHost, NativeFederationTypeScriptRemote };
|
package/dist/webpack.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkIDWEZ3WPjs = require('./chunk-IDWEZ3WP.js');var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkIDWEZ3WPjs = require('./chunk-IDWEZ3WP.js');var i=_chunkIDWEZ3WPjs.a.webpack,p= exports.NativeFederationTypeScriptHost =_chunkIDWEZ3WPjs.b.webpack;exports.NativeFederationTypeScriptHost = p; exports.NativeFederationTypeScriptRemote = i;
|
package/dist/webpack.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,b as t}from"./chunk-MSWS7NCK.mjs";var
|
|
1
|
+
import{a as e,b as t}from"./chunk-MSWS7NCK.mjs";var i=e.webpack,p=t.webpack;export{p as NativeFederationTypeScriptHost,i as NativeFederationTypeScriptRemote};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/native-federation-typescript",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Bundler agnostic unplugin to share federated types",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"module federation",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"ansi-colors": "^4.1.3",
|
|
57
57
|
"axios": "^1.6.7",
|
|
58
58
|
"rambda": "^9.1.0",
|
|
59
|
-
"unplugin": "^1.
|
|
59
|
+
"unplugin": "^1.9.0"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
62
|
"typescript": "^4.9.0 || ^5.0.0",
|