
use to external resources
Vite Plugin Externals is a powerful tool for web developers that allows you to efficiently manage external resources within your Vite projects. Inspired by the popular Webpack externals feature, this plugin is designed specifically for browsers and enhances your production workflow without the need for complex Rollup setups. However, it's important to be cautious, especially when using it in development mode, as it could interfere with Hot Module Replacement (HMR).
The plugin's flexible configuration options cater to various use cases, making it suitable for a range of projects. Whether you're dealing with complex module dependencies or simply looking to streamline your bundling process, Vite Plugin Externals can add significant value to your development experience.
Production Mode Compatibility: Can be utilized in production mode effortlessly without additional Rollup configurations.
Development Mode Caution: Be aware that loading production libraries in Vite’s dev mode may disrupt HMR; use disableInServe: true to prevent this.
Source Code Transformation: Effectively transforms the source code of JavaScript files; however, it requires the code to be in a compatible format before applying the plugin.
Plugin Ordering Enforcement: Offers an option to enforce plugin ordering to mitigate unexpected errors caused by plugin arrangements.
File Filtering: By default, filters out files in node_modules, applying transformations only to js, ts, vue, jsx, and tsx files.
Custom Filter Functions: Enables developers to specify a filter function, allowing fine control over which files get transformed.
Window Prefix Management: The useWindow option lets you decide whether to prepend the window object, important for module names with special characters.
Source Map Options: Provides configuration for code sourcemaps post-transformation, making it easier to debug issues in converted code.

Vite is a build tool that aims to provide a faster and leaner development experience for modern web projects
ESLint is a linter for JavaScript that analyzes code to detect and report on potential problems and errors, as well as enforce consistent code style and best practices, helping developers to write cleaner, more maintainable code.
RollupJS is a popular and efficient JavaScript module bundler that takes the code from multiple modules and packages them into a single optimized file, minimizing the overall size of the application and improving its performance.
TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.