0.8.0 • Published 11 months ago

@open-xchange/vite-plugin-ox-externals v0.8.0

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
11 months ago

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

pnpm i "@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:

NameTypeDefaultDescription
prefixstring'$'The prefix to use for external modules. Will always be followed by a / if you specify the path.

Example

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

How to test

pnpm test
0.8.0

11 months ago

0.7.1

12 months ago

0.7.0

1 year ago

0.6.3

1 year ago

0.6.2

2 years ago

0.6.1

2 years ago

0.6.0

2 years ago

0.5.1

2 years ago

0.5.0

2 years ago

0.4.2

2 years ago

0.4.1

2 years ago

0.4.0

2 years ago

0.3.1

3 years ago

0.3.0

3 years ago

0.2.0

4 years ago

0.2.0-pre2

4 years ago

0.2.0-pre1

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago