Skip to content

0zd0/rollup-plugin-woocommerce-dependency-extraction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rollup-plugin-woocommerce-dependency-extraction

Installation

Install the plugin

bun install rollup-plugin-woocommerce-dependency-extraction --save-dev

Vite

export default defineConfig(({ mode }) => {
    return {
        plugins: [
            react(),
            wcDependencyExtraction(mode === 'development'),
        ],
        build: {
            manifest: true,
            rollupOptions: {
                output: {
                    format: 'iife',
                },
            },
        },
        esbuild: {
            minifyIdentifiers: false,
        },
        optimizeDeps: {
            exclude: [...wcOptimizeDepsExclude],
        },
    }
})

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published