vite-plugin-sugar
v0.0.3
Published
The library reference [vite-plugin-commonjs](#https://github.com/originjs/vite-plugins/tree/main/packages/vite-plugin-commonjs)
Downloads
7
Maintainers
Readme
vite-plugin-sugar
The library reference vite-plugin-commonjs
Polyfill some libraries that are not coded correctly, as follows:
- [x] lamejs
- [ ] emoji-picker-react
Install
$ npm install vite-plugin-sugar --save-dev
or
$ yarn add vite-plugin-sugar -D
Usage
import { vitePluginLibraryPolyfill } from 'vite-plugin-sugar';
// vite.config.ts/vite.config.js
export default {
plugins: [
vitePluginLibraryPolyfill({include: ['lamejs']})
]
}