0.1.2 • Published 2 years ago

@plenny/vite-externalizer v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Vite Externalizer

This is very simple plugin to externalize all dependencies within your package, so they're not being bundled. You don't have to define rollupOptions.external within your vite.config.ts.

What's the purpose

When developing some complex packages with quite large amount of dependencies we have found that's really hard to exclude all of them from bundling, mainly because some of those dependencies also might have another dependencies, and it's a nightmare to exclude them all manually.

How to use

Simply add the plugin to your vite config file and that's it. There are no options available, as with our approach we don't need any as we always want to exclude all third party dependencies.

// vite.config.ts
import { defineConfig } from 'vite';
import { externalizer } from '@plenny/vite-externalizer';

export default defineConfig({
  plugins: [
    externalizer(),
  ],
});
0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago