plugin.js 303 B

123456789101112
  1. const webpack = require('webpack')
  2. let VueLoaderPlugin = null
  3. if (webpack.version && webpack.version[0] > 4) {
  4. // webpack5 and upper
  5. VueLoaderPlugin = require('./plugin-webpack5')
  6. } else {
  7. // webpack4 and lower
  8. VueLoaderPlugin = require('./plugin-webpack4')
  9. }
  10. module.exports = VueLoaderPlugin