diff --git a/config/webpack/webpack.common.ts b/config/webpack/webpack.common.ts index 4402f135bd8e..bedd7e50ef94 100644 --- a/config/webpack/webpack.common.ts +++ b/config/webpack/webpack.common.ts @@ -18,13 +18,13 @@ type Options = { include: string; }; -type PreloadWebpackPluginProps = { - new (options?: Options): PreloadWebpackPluginProps; +type PreloadWebpackPluginClass = { + new (options?: Options): PreloadWebpackPluginClass; apply: (compiler: Compiler) => void; }; // require is necessary, there are no types for this package and the declaration file can't be seen by the build process which causes an error. -const PreloadWebpackPlugin: PreloadWebpackPluginProps = require('@vue/preload-webpack-plugin'); +const PreloadWebpackPlugin: PreloadWebpackPluginClass = require('@vue/preload-webpack-plugin'); const includeModules = [ 'react-native-animatable',