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 core.
I still do not understand why not use the built in type system?
from core.
@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 core.
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 core.
Related Issues (20)
- Entire process.env compiled into application code (webpack) HOT 2
- MF v1.0 `shared` dependencies at build time are not shared with MF v1.5 runtime HOT 2
- Add option to specify "filePath" for dts generateTypes HOT 5
- Module parse failed: Cannot use 'import.meta' outside a module HOT 3
- Add support for eager "exposed" modules HOT 5
- @module-federation/typescript upgrade from v3.1.1 to v3.1.2 breaks with npm HOT 2
- remoteEntry.js wrongly generated HOT 10
- Getting 500 (Internal Sever Error) with NextJS API route when fired from browser right after server is started in production bundle HOT 7
- @module-federation v2 runtime plugin - beforePreloadRemote args wrongly typed HOT 5
- @module-federation v2 runtime plugin - remoteEntry import HOT 5
- Duplicate network request for same chunk in MF-V2 HOT 12
- RemoteEntry file size increased by ~7x HOT 8
- Hot reload not working on exposed files HOT 7
- Non-deterministic sourcemaps generated by Module Federation V2 HOT 4
- @module-federation/runtime init method not executing as expected HOT 17
- @module-federation/runtime loadRemote - Cannot define property Symbol(mf_module_id) HOT 5
- When modifying files (occasionally) or rsbuild.config.ts (must be), the generated product has problems HOT 2
- file not found error HOT 1
- Optimizing the problem of overly long identifiers of the container entry module of the issuerPath in the stats.json file HOT 2
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 core.