• Makes the script to be served with the text/javascript MIME type instead of module MIME type.

    Parameters

    Returns {
        name: string;
        config(config): void;
        configResolved(config): void;
        load(id): undefined | string;
    }

    a vite plugin

    Example

    import { defineConfig } from 'vite';
    import reverseProxy from 'vite-plugin-reverse-proxy';

    export default defineConfig({
    plugins: [
    reverseProxy({
    targets: {
    '/app.js':'src/main.jsx'
    }
    }),
    ]
    });

Generated using TypeDoc