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";
    
    FunzioneDescrizioneDoc correlata
    intlayerPlugin Vite principale che integra Intlayer nel processo di build.intlayer
    intlayerPlugin(Deprecato) Alias per intlayer.intlayer
    intlayerProxyPlugin middleware per lo sviluppo che gestisce il rilevamento della locale e il routing.-
    intlayerMiddleware(Deprecato) Alias per intlayerProxy.-
    intlayerPrunePlugin per eseguire il tree-shaking e potare i dizionari non utilizzati durante la build.intlayerPrune

    Utilities

    ExportDescriptionRelated Doc
    createIntlayerProxyHandlerRestituisce un middleware Node.js (req, res, next) agnostico del framework con logica di routing locale.intlayerProxy

    Types

    ExportDescription
    IntlayerPluginOptionsOpzioni accettate da intlayer(). Estende GetConfigurationOptions con compatCallers e proxy.
    IntlayerProxyPluginOptionsOpzioni accettate da intlayerProxy() e createIntlayerProxyHandler(). Include ignore e configOptions.
    IntlayerCompilerOptionsOpzioni accettate da intlayerCompiler(). Include configOptions e compilerConfig.
    CompatCallerConfigRe-export da @intlayer/babel. Descrive un pattern di caller compat-adapter per l'analisi dell'utilizzo dei campi.