Skip to content

Tzxhy/vite-plugin-case-sensitive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vite-plugin-case-sensitive

Detect module import with case sensitive for vite(compatible with rollup).

usage

// vite.config.js
import caseSensitivePlugin from '@tzxhy/vite-plugin-case-sensitive';
import path from 'path';

export default defineConfig(env => {
	const plugins = [];
	if (env.mode !== 'production') {
        plugins.push(caseSensitivePlugin({
			// the minimum project root, for example: /User/test/workspace/project/src
            cwd: path.join(process.cwd(), 'src'),
        }));
    }
	// ... other configs
	return {
		plugins,
		// ... other configs
	};
});

About

Used to detect file import with case sensitive.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published