Git Product home page Git Product logo

Comments (7)

ScriptedAlchemy avatar ScriptedAlchemy commented on August 15, 2024 2

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.

ScriptedAlchemy avatar ScriptedAlchemy commented on August 15, 2024

I still do not understand why not use the built in type system?

from core.

crutch12 avatar crutch12 commented on August 15, 2024

@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.

crutch12 avatar crutch12 commented on August 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.