Skip to content

Allows bundled Gimloader plugins to use Gimloader's exposed svelte exports

Notifications You must be signed in to change notification settings

Gimloader/external-svelte-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@gimloader/external-svelte-plugin

A plugin for the Gimloader build tools which makes scripts automatically use Gimloader's exposed Svelte exports, cutting down script size by 1-2k lines.

This plugin requires Svelte v5.43.0 exactly. Should Gimloader update its svelte version in the future, there will be a short grace period before the old version is removed.

Usage

Import the plugin and add it to the plugins array of your gimloader.config.ts/js file. This should be used alongside the esbuild-svelte plugin.

import svelte from "esbuild-svelte";
import { externalSvelte } from "@gimloader/external-svelte-plugin";

export default {
    // ...
    plugins: [
        svelte({
            compilerOptions: {
                css: "injected"
            }
        }),
        externalSvelte()
    ]
}

About

Allows bundled Gimloader plugins to use Gimloader's exposed svelte exports

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors