š„¶ 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
š§š§š§