Autore:
    Creazione:2026-01-21Ultimo aggiornamento:2026-01-21

    Pacchetto vite-intlayer

    Il pacchetto vite-intlayer fornisce un plugin Vite per integrare Intlayer nella tua applicazione basata su Vite.

    Installazione

    bash
    npm install vite-intlayer

    Esportazioni

    Plugin

    Importazione:

    tsx
    import "vite-intlayer";
    Funzione Descrizione Doc correlata
    intlayer Plugin Vite principale che integra Intlayer nel processo di build. intlayer
    intlayerPlugin (Deprecato) Alias per intlayer. intlayer
    intlayerProxy Plugin middleware per lo sviluppo che gestisce il rilevamento della locale e il routing. -
    intlayerMiddleware (Deprecato) Alias per intlayerProxy. -
    intlayerPrune Plugin per eseguire il tree-shaking e potare i dizionari non utilizzati durante la build. intlayerPrune

    Utilities

    Export Description Related Doc
    createIntlayerProxyHandler Restituisce un middleware Node.js (req, res, next) agnostico del framework con logica di routing locale. intlayerProxy

    Types

    Export Description
    IntlayerPluginOptions Opzioni accettate da intlayer(). Estende GetConfigurationOptions con compatCallers e proxy.
    IntlayerProxyPluginOptions Opzioni accettate da intlayerProxy() e createIntlayerProxyHandler(). Include ignore e configOptions.
    IntlayerCompilerOptions Opzioni accettate da intlayerCompiler(). Include configOptions e compilerConfig.
    CompatCallerConfig Re-export da @intlayer/babel. Descrive un pattern di caller compat-adapter per l'analisi dell'utilizzo dei campi.