Skip to content

Commit

Permalink
rename preload webpack plugin type
Browse files Browse the repository at this point in the history
  • Loading branch information
bgawkuc committed Jun 5, 2024
1 parent 75b085a commit 729aaa1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config/webpack/webpack.common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 729aaa1

Please sign in to comment.