Comments (7)
Once esbuild is merged i will be moving onto vite/rolldown integration. Esbuild we will include type since and pretty much everything else we can support on weaker bundler tech. But yes i understand the issue now
from universe.
About the requested features, atm the plugin is made to be compatible with the "standard" module federation (e.g. the one embedded with Webpack) so I would avoid inserting the support for the manifest because as Zack said it will be available in the near feature officially.
But I can work on make it available without it. I'll wait for Zack's feedback first.
from universe.
I still do not understand why not use the built in type system?
from universe.
@ScriptedAlchemy how can I use built in type system with vite?
It supports only rspack/webpack, doesn't it?
So I use vite-plugin-federation
+ @module-federation/native-federation-typescript
from universe.
Okay, waiting for esbuild
implementation (#2473)
But @module-federation/native-federation-typescript
is great, could be cool if we could use it as CLI
/programmatically
# CLI
$ npx @module-federation/native-federation-typescript generate-host
or/and
// programmatically
import { generateHost } from '@module-federation/native-federation-typescript'
await generateHost({ /* ... */ })
Now, for programming usage, I use esbuild
plugin :D
const esbuild = require('esbuild');
const { NativeFederationTypeScriptHost } = require('@module-federation/native-federation-typescript/esbuild');
const generate = () => esbuild.build({
plugins: [
NativeFederationTypeScriptHost({
/* ... */
}),
],
});
module.exports.generate = generate
from universe.
@ScriptedAlchemy I'll wait for your feedback here.
If it's something that is worth to be implemented I can do it, but if it will be thrown away shortly maybe it's just better to wait
from universe.
Im unsure on timeline on supporting esbuild but i know this is the intention once others work, to try and make them work with other implementations as well. If we want at least a mid term solution - it might be updating the plugin.
@ilteoood have you looked at our TS impl in DTS manager?
im wondering if we could hook into the internals of it like dts or the broker? I wonder if we are able to use some of the lower parts of the system to share capabilites
from universe.
Related Issues (20)
- Can't create Error Fallback when any Remote fails. HOT 9
- Chrome Extension is not working due to empty `moduleInfo` HOT 3
- web worker error in host HOT 2
- Exact matching alias does not work as expected in bridge webpack plugin HOT 2
- Shared dependency version cannot be resolved if installed at root of a monorepo
- Spaces in path to project with @module-federation/next-mf result in `Unterminated string in JSON at position` and HookWebpackError errors HOT 8
- how can I use in vue3 ts template HOT 8
- Cannot use vue2.7 lifecycle hook through module federation HOT 1
- [CORS]: @module-federation/nextjs-mf HOT 3
- Cannot use shared module in .mjs file correctly HOT 4
- Adding element to page with id that matches remote's name causes `TypeError: remoteEntryExports.init is not a function` HOT 2
- External modules not shared HOT 4
- [MF Plugin] "promise new Promise" syntax doesn't work with @ char in it HOT 4
- Entry runtime miss function "O" HOT 6
- esbuild plugin error: Top-level await is not available in the configured target environment HOT 1
- @module-federation/nextjs-mf version 8.4.0 breaks API routes
- Having production error - TypeError: (void 0) is not a function at .next/server/webpack-api-runtime.js:1:199 HOT 1
- Nextjs plugin doesn't work unless the "unsafe-eval" CSP header is set
- Vue Bridge package lacks `dist` HOT 4
- misleading error message when remoteEntry.files is empty
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from universe.