Catch the highlights of GraphQLConf 2023! Click for recordings. Or check out our recap blog post.
Docs
Tools
Vite - 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

🚧🚧🚧