import webpack = require ( 'webpack' ) ; declare class VueLoaderPlugin implements webpack . Plugin { static NS : string ; apply ( compiler ) ; } let Plugin ; if ( webpack . version && webpack . version [ 0 ] > '4' ) { Plugin = require ( './pluginWebpack5' ) . default ; } else { Plugin = require ( './pluginWebpack4' ) . default ; } export default Plugin ;