1.1.0 • Published 10 months ago

vite-plugin-c3 v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

vite-plugin-c3: making C3 easy-to-use for the web

Plugin for automatic C3 to WASM compilation and site reloading in Vite. ⚡

Supported platforms

See the @c3-lang/c3c package for information on supported platforms and how to configure unsupported ones.

Usage

import { defineConfig } from 'vite';
import { c3c } from 'vite-plugin-c3';
// ...

export default defineConfig({
    plugins: [
        // Include the plugin:
        c3c({
            /* config options */
        })
    ],
    // ...
});

Configuration

// Here is the default configuration:
c3c({
    outputPath: 'static/wasm_main',  // Output path for the WASM binary
    include: ['src/**/*.c3'],  // Glob patterns to include
    exclude: [],  // Glob patterns to exclude (overrides include)
    wasm64: false,  // Whether to use 64-bit WASM
    compilerOptions: ''  // Additional compiler options passed to c3c
})
1.1.0

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago