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

> A vite plugin to resolve external ox core modules

Latest version **1.0.1** (published 2026-07-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install @open-xchange/vite-plugin-ox-externals
pnpm add @open-xchange/vite-plugin-ox-externals
yarn add @open-xchange/vite-plugin-ox-externals
bun add @open-xchange/vite-plugin-ox-externals
```

## Health

**Score 60/100 (C)** — status: active.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2026-07-13 |
| First published | 2021-05-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 23.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | App Suite Web Foundation <app-suite-web-foundation@open-xchange.com> |
| Maintainers | johnyb, davidbauer, solygen, daniel.rentz, alexquast, d.haus, maik.schaefer, andree, bjoern.koester, mbiggeleben |

## Links

- npm: https://www.npmjs.com/package/@open-xchange/vite-plugin-ox-externals
- Repository: https://gitlab.com/openxchange/appsuite/web-foundation/tools
- npm.io page: https://npm.io/package/@open-xchange/vite-plugin-ox-externals

## Dependencies (2)

- [magic-string](https://npm.io/package/magic-string.md) ^0.30.21
- [es-module-lexer](https://npm.io/package/es-module-lexer.md) ^2.1.0

## Recent versions

- 1.0.1 (latest) — 2026-07-13
- 1.0.0-pre1 (pre) — 2026-03-13
- 0.3.0 (dev) — 2022-08-10
- 1.0.0 — 2026-03-16
- 0.8.1 — 2025-12-12
- 0.8.0 — 2024-08-19
- 0.7.1 — 2024-07-17
- 0.7.0 — 2024-06-18
- 0.6.3 — 2024-03-01
- 0.6.2 — 2023-12-05
- 0.6.1 — 2023-12-05
- 0.6.0 — 2023-10-17
- 0.5.1 — 2023-07-04
- 0.5.0 — 2023-05-16
- 0.4.2 — 2023-03-17
- … 9 more at https://npm.io/package/@open-xchange/vite-plugin-ox-externals/versions

## README

# 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

```sh
pnpm i "@open-xchange/vite-plugin-ox-externals"
```

## How to use

```js
// 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:

| Name | Type | Default | Description |
| -- | -- | -- | -- |
| `prefix` | `string` | `'$'` | The prefix to use for external modules. Will always be followed by a `/` if you specify the path. |

## Example

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

## How to test

```sh
pnpm test
```

---
_Source: https://npm.io/package/@open-xchange/vite-plugin-ox-externals · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
