gilmoreorless / moment-timezone-data-webpack-plugin

Reduce moment-timezone data size for a webpack build
MIT License
92 stars 7 forks source link

NormalModuleFactory.beforeResolve #57

Closed apenab closed 1 year ago

apenab commented 1 year ago

Hi! I have the following error:

NormalModuleFactory.beforeResolve (IgnorePlugin, NormalModuleReplacementPlugin) is no longer a waterfall hook, but a bailing hook instead. Do not return the passed object, but modify it instead. Returning false will ignore the request and results in no module created.

I'm using webpack 5 with the following plugins:

[
            new MomentTimezoneDataPlugin({
                startYear: currentYear - 100,
                endYear: currentYear + 5,
            }),
            new BundleAnalyzerPlugin({analyzerMode: "static"}),
            new LodashModuleReplacementPlugin(),
            new BundleTracker({filename: "../../core/webpack-stats.json", indent: 4}),
        ]
apenab commented 1 year ago

wrong use, I used webpack v4 instead v5.