Rush StackShopBlogEvents
Skip to main content

Home > @rushstack/webpack-plugin-utilities > VersionDetection > isWebpack3OrEarlier

VersionDetection.isWebpack3OrEarlier() function

We do not have quality API detection between webpack major versions 1-3. We can detect the absence of hooks which was a version 3 feature.

Signature:

declare function isWebpack3OrEarlier(compiler: Webpack.Compiler): boolean;

Parameters

Parameter

Type

Description

compiler

Webpack.Compiler

Returns:

boolean