mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-05-31 16:40:02 +00:00
30 lines
753 B
TypeScript
30 lines
753 B
TypeScript
import webpack = require('webpack');
|
|
import DuplicatePackageCheckerWebpackPlugin = require('duplicate-package-checker-webpack-plugin');
|
|
|
|
const a: webpack.Configuration = {
|
|
entry: 'test.js',
|
|
plugins: [
|
|
new DuplicatePackageCheckerWebpackPlugin()
|
|
]
|
|
};
|
|
const b: webpack.Configuration = {
|
|
entry: 'test.js',
|
|
plugins: [
|
|
new DuplicatePackageCheckerWebpackPlugin({})
|
|
]
|
|
};
|
|
const c: webpack.Configuration = {
|
|
entry: 'test.js',
|
|
plugins: [
|
|
new DuplicatePackageCheckerWebpackPlugin({
|
|
verbose: true,
|
|
emitError: true,
|
|
showHelp: false,
|
|
strict: false,
|
|
exclude(instance) {
|
|
return instance.name === "fbjs";
|
|
}
|
|
})
|
|
]
|
|
};
|