single-spa / single-spa.js.org

Home Page:https://single-spa.js.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Documentation for Vite is outdated

RPDeshaies opened this issue · comments

Describe the bug or question

The documentation on how to integrate Single Spa with ViteJS is outdated.

https://single-spa.js.org/docs/ecosystem-vite/

The examples laid out on the page areonly compatible with ViteJS v1 and not the most recent v2.3.5.

There's a v2 migration guide available here, and I was able to convert most of the config to v2, though I don't know what to do with the configureServer property that doesn't seem to exist in v2.

export default defineConfig({
    build: {
        rollupOptions: {
            input: 'src/index.tsx',
            preserveEntrySignatures: 'exports-only',
            output: {
                format: 'systemjs',
            },
        },
    },
});

Thanks for the bug report, I've transferred this to single-spa.js.org repo. The vite example repo shows usage with Vite 2, just the documentation needs to match.

Resolved in #461