bannerPlugin.test.js.snap 680 B

1234567891011121314151617181920212223242526272829303132
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`bannerPlugin transforms correctly using "bannerPlugin-0" data 1`] = `
  3. "module.exports = {
  4. plugins: [
  5. new webpack.BannerPlugin({
  6. raw: true,
  7. entryOnly: true,
  8. banner: 'Banner'
  9. })
  10. ]
  11. }
  12. "
  13. `;
  14. exports[`bannerPlugin transforms correctly using "bannerPlugin-1" data 1`] = `
  15. "// Should do nothing if there is no banner plugin
  16. module.exports = {
  17. plugins: []
  18. }
  19. "
  20. `;
  21. exports[`bannerPlugin transforms correctly using "bannerPlugin-2" data 1`] = `
  22. "// Only transform if it uses the old format
  23. module.exports = {
  24. plugins: [
  25. new webpack.BannerPlugin({})
  26. ]
  27. }
  28. "
  29. `;