mammadataei / cypress-vite

Run Cypress specs using Vite
MIT License
87 stars 11 forks source link

RollupError: Invalid value for option "output.manualChunks" - this option is not supported for "output.inlineDynamicImports". #57

Closed SIGSTACKFAULT closed 1 year ago

SIGSTACKFAULT commented 1 year ago

I use build.rollupOptions.output.manualChunks:

// cypress.config.ts
export default defineConfig(() => {
    return {
        build: {
            rollupOptions: {
                output: {
                    manualChunks: {
                        globals: ["src/globals.ts"],
                        Ship: ["src/Ship.ts"],
                        Component: ["src/Component.ts"],
                        mathjs: ["mathjs"],
                    },
                },
            },
        },
        plugins: [vue()],
        // ... etc ...
    };
});

This causes cypress-vite to just... not work image

SIGSTACKFAULT commented 1 year ago

[wrote a workaround here previously but it doesn't work because the config passed to VitePreprocessor doesn't override the defaults in the way i thought