Nacho Printing Machine

    @open-xchange/vite-plugin-ox-externals

    0.2.0 • Public • Published

    Vite Plugin OX Externals

    A vite plugin that will mark prefixed modules as external and will transform the path in production into a path relative to the root.

    Install

    npm install "@open-xchange/vite-plugin-ox-externals"
    yarn add "@open-xchange/vite-plugin-ox-externals"

    How to use

    // in the vite.config.js
    import vitePluginOxExternals from '@open-xchange/vite-plugin-ox-externals'
    
    return {
      plugins: [vitePluginOxExternals()]
    }

    Options

    You can provide the following options to the plugin:

    • prefix <string> The prefix to use for external modules. Will always be followed by a / if you specify the path. Default: '$'

    Example

    // import the core settings module
    import { Settings } from '$/io.ox/core/settings'

    How to test

    yarn test

    Keywords

    none

    Install

    npm i @open-xchange/vite-plugin-ox-externals

    DownloadsWeekly Downloads

    549

    Version

    0.2.0

    License

    MIT

    Unpacked Size

    11.5 kB

    Total Files

    19

    Last publish

    Collaborators

    • moritz.bach
    • andree
    • anne.matthes
    • johnyb
    • davidbauer
    • richard.petersen
    • solygen
    • daniel.rentz
    • alexquast
    • d.haus
    • maik.schaefer
    • jjacobsohn