DocsToolsVite - Stripper

šŸ„¶ How to - vite-plugin-stripper

šŸ’”

KitQL itself is not a library, itā€™s ā€œnothingā€ but a collection of standalone libraries.

The first need was to remove @BackendMethod from your browser bundle for remult.

Examples

vite.config.ts
import { sveltekit } from '@sveltejs/kit/vite'
import { defineConfig } from 'vite'
import { stripper } from 'vite-plugin-stripper'
 
export default defineConfig({
  plugins: [
    // To strip `@BackendMethod` from your browser bundle
    stripper({ decorators: ['BackendMethod'] }),
    sveltekit()
  ]
})

Installation

npm i -D vite-plugin-stripper

Configuration

šŸš§šŸš§šŸš§