@papillonbits/library 0.45.0 → 0.47.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/a11y/index.js +1 -2
  2. package/array/index.js +16 -40
  3. package/auth/index.js +0 -16
  4. package/boolean/index.js +0 -1
  5. package/date/index.js +0 -2
  6. package/event/index.js +0 -4
  7. package/hooks/index.js +0 -1
  8. package/jest/config.js +5 -5
  9. package/jest/index.js +0 -2
  10. package/jest/setup.js +0 -5
  11. package/number/index.js +6 -8
  12. package/object/index.js +0 -5
  13. package/package.json +2 -2
  14. package/pagination/index.js +11 -26
  15. package/sort/index.js +2 -26
  16. package/store/index.js +0 -1
  17. package/store/mock/index.js +0 -4
  18. package/storybook/index.js +0 -1
  19. package/storybook/setup/mainSetup.js +10 -23
  20. package/string/index.js +2 -7
  21. package/webpack/index.js +0 -23
  22. package/webpack/loader/babelLoader.js +1 -2
  23. package/webpack/loader/cssLoader.js +2 -2
  24. package/webpack/loader/fontLoader.js +1 -1
  25. package/webpack/loader/imageLoader.js +1 -1
  26. package/webpack/loader/markdownLoader.js +1 -1
  27. package/webpack/loader/postCSSLoader.js +1 -1
  28. package/webpack/loader/sassLoader.js +1 -1
  29. package/webpack/loader/svgrLoader.js +1 -2
  30. package/webpack/plugin/bannerPlugin.js +1 -3
  31. package/webpack/plugin/cleanWebpackPlugin.js +7 -9
  32. package/webpack/plugin/copyWebpackPlugin.js +2 -4
  33. package/webpack/plugin/cssMinimizerWebpackPlugin.js +1 -3
  34. package/webpack/plugin/dotenvWebpack.js +7 -10
  35. package/webpack/plugin/hotModuleReplacementPlugin.js +1 -3
  36. package/webpack/plugin/htmlWebpackPlugin.js +7 -11
  37. package/webpack/plugin/miniCSSExtractPlugin.js +1 -5
  38. package/webpack/plugin/moduleConcatenationPlugin.js +1 -3
  39. package/webpack/plugin/webpackBundleAnalyzer.js +1 -2
  40. package/webpack/plugin/webpackManifestPlugin.js +1 -4
  41. package/webpack/server/devServer.js +1 -1
  42. package/webpack/setup/commonSetup.js +1 -12
  43. package/webpack/setup/developmentSetup.js +8 -13
  44. package/webpack/setup/productionSetup.js +8 -13
@@ -4,25 +4,20 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.getWebpackProductionSetup = getWebpackProductionSetup;
7
-
7
+ var _webpackMerge = require("webpack-merge");
8
8
  var _cssLoader = require("../loader/cssLoader");
9
-
10
9
  var _bannerPlugin = require("../plugin/bannerPlugin");
11
-
12
10
  var _cssMinimizerWebpackPlugin = require("../plugin/cssMinimizerWebpackPlugin");
13
-
14
11
  var _dotenvWebpack = require("../plugin/dotenvWebpack");
15
-
16
12
  var _miniCSSExtractPlugin = require("../plugin/miniCSSExtractPlugin");
17
-
18
13
  var _webpackBundleAnalyzer = require("../plugin/webpackBundleAnalyzer");
19
-
20
14
  function getWebpackProductionSetup(_ref) {
21
- var environmentVariablesFilePath = _ref.environmentVariablesFilePath,
22
- micrositeUrlPath = _ref.micrositeUrlPath,
23
- micrositeFolderPaths = _ref.micrositeFolderPaths,
24
- packageJSON = _ref.packageJSON;
25
- return {
15
+ var webpackCommonSetup = _ref.webpackCommonSetup,
16
+ environmentVariablesFilePath = _ref.environmentVariablesFilePath,
17
+ micrositeUrlPath = _ref.micrositeUrlPath,
18
+ micrositeFolderPaths = _ref.micrositeFolderPaths,
19
+ packageJSON = _ref.packageJSON;
20
+ return (0, _webpackMerge.merge)([webpackCommonSetup, {
26
21
  mode: 'production',
27
22
  devtool: false,
28
23
  output: {
@@ -56,5 +51,5 @@ function getWebpackProductionSetup(_ref) {
56
51
  }), 'postcss-loader', 'sass-loader']
57
52
  }]
58
53
  }
59
- };
54
+ }]);
60
55
  }