/rollup-plugin-requiretoimport

this is plugins for rollup to deal with dependence code turn require into import

Primary LanguageJavaScript

rollup-plugin-requiretoimport

require 转 import插件

使用方法

npm i -D rollup-plugin-requiretoimport
import requireToImportPlugin from 'rollup-plugin-requiretoimport';
export default defineConfig({
  plugins: [
    requireToImportPlugin()
  ]
})