deprecate accessing FilerWebpackPlugin through index.js

This commit is contained in:
bcheidemann 2021-11-13 20:16:39 +00:00
parent fd3e397f12
commit 854b5d7e1d
1 changed files with 9 additions and 0 deletions

View File

@ -9,6 +9,15 @@ module.exports = Filer = {
path: require('./path.js'),
Errors: require('./errors.js'),
Shell: require('./shell/shell.js'),
/**
* @deprecated Importing filer from your webpack config is not recommended.
*
* The filer `FilerWebpackPlugin` class is exposed directly.
*
* ```
* const { FilerWebpackPlugin } = require('filer/webpack');
* ```
*/
FilerWebpackPlugin: require('./webpack-plugin'),
};