1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- // Jest Snapshot v1, https://goo.gl/fbAQLP
- exports[`removeDeprecatedPlugins transforms correctly using "removeDeprecatedPlugins-0" data 1`] = `
- "// Works for OccurrenceOrderPlugin
- module.exports = {}
- "
- `;
- exports[`removeDeprecatedPlugins transforms correctly using "removeDeprecatedPlugins-1" data 1`] = `
- "// Works for DedupePlugin
- module.exports = {}
- "
- `;
- exports[`removeDeprecatedPlugins transforms correctly using "removeDeprecatedPlugins-2" data 1`] = `
- "// Doesn't remove unmatched plugins
- module.exports = {
- plugins: [new webpack.optimize.UglifyJsPlugin()]
- }
- "
- `;
- exports[`removeDeprecatedPlugins transforms correctly using "removeDeprecatedPlugins-3" data 1`] = `
- "// This should throw
- export default (config) => {
- config.plugins.push(new webpack.optimize.UglifyJsPlugin());
- config.plugins.push(new webpack.optimize.DedupePlugin());
- config.plugins.push(new webpack.optimize.OccurrenceOrderPlugin());
- return config
- }
- "
- `;
- exports[`removeDeprecatedPlugins transforms correctly using "removeDeprecatedPlugins-4" data 1`] = `
- "// This should throw
- const inst = new webpack.optimize.OccurrenceOrderPlugin()
- export default (config) => {
- config.plugins = [
- inst
- ]
- return config
- }
- "
- `;
|