Skip to content

Commit

Permalink
Use webpack config js package in everything except Jetpack (#21580)
Browse files Browse the repository at this point in the history
* lazy-images: Use the new webpack-config package

  Mostly as a proof of concept. But I also took the opportunity to clean a
  few things up:

  * Name the built JS as ".min.js" like it should be.
  * Use copy-webpack-plugin to copy the src version of
    intersection-observer.
  * Use @wordpress/dependency-extraction-webpack-plugin to handle the
    cache-buster version in `wp_enqueue_script()`.

* connection-ui: Use the new webpack-config package

  I tried not to change too much in this iteration, but I do note that the
  new package uses a newer version of @wordpress/browserslist-config than
  calyspo-build does so it now transpiles without IE11 support.

* identity-crisis: Use the new webpack-config package

  I tried not to change too much in this iteration, but I do note that the
  new package uses a newer version of @wordpress/browserslist-config than
  calyspo-build does so it now transpiles without IE11 support.

  Also I dropped babel-minify-webpack-plugin, as terser that's included
  with webpack seems to work just as well (and has been updated more
  recently than 4 years ago).

* jitm: Use the new webpack-config package

  This results in no change to the production build. The development build
  is no longer actually minified.

* backup: Use the new webpack-config package

  This also reverts the "bring back the "Cloud" icon, the path changed
  after the Webpack update" bit from #20900 and similar code. The
  problem was Automattic/wp-calypso#56111, which is not present in the
  new package.

Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/1426089502
  • Loading branch information
anomiex authored and matticbot committed Nov 5, 2021
1 parent fe26ff8 commit db420a1
Show file tree
Hide file tree
Showing 22 changed files with 1,600 additions and 2,589 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ This is an alpha version! The changes listed here are not final.
- Updated version numbers and Stable Tag
- Update PHPUnit configs to include just what needs coverage rather than include everything then try to exclude stuff that doesn't.
- Update upgrade button link target to point to checkout
- Update webpack build config.

## 1.0.0 - 2021-10-13
### Added
Expand Down
2 changes: 1 addition & 1 deletion build/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-date', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '7684e095eae0b8878b6ba8d6babdfb60');
<?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-date', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'b8d94b755f2d265bcab9791c60567a68');
2 changes: 1 addition & 1 deletion build/index.css

Large diffs are not rendered by default.

8 changes: 2 additions & 6 deletions build/index.js

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions build/index.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
2 changes: 1 addition & 1 deletion build/index.rtl.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"automattic/jetpack-backup": "1.1.x-dev",
"automattic/jetpack-config": "1.5.x-dev",
"automattic/jetpack-connection": "1.30.x-dev",
"automattic/jetpack-connection-ui": "1.7.x-dev",
"automattic/jetpack-connection-ui": "2.0.x-dev",
"automattic/jetpack-sync": "1.27.x-dev",
"automattic/jetpack-status": "1.9.x-dev"
},
Expand Down
5 changes: 3 additions & 2 deletions vendor/automattic/jetpack-connection-ui/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.7.0-alpha] - unreleased
## [2.0.0-alpha] - unreleased

This is an alpha version! The changes listed here are not final.

Expand All @@ -15,6 +15,7 @@ This is an alpha version! The changes listed here are not final.
### Changed
- Updated package dependencies.
- Updated package dependencies.
- Update webpack build config. Removes IE 11 support in the JavaScript.

## [1.6.0] - 2021-11-02
### Changed
Expand Down Expand Up @@ -121,7 +122,7 @@ This is an alpha version! The changes listed here are not final.

- Connection UI: Building the Framework

[1.7.0-alpha]: https://github.com/Automattic/jetpack-connection-ui/compare/v1.6.0...v1.7.0-alpha
[2.0.0-alpha]: https://github.com/Automattic/jetpack-connection-ui/compare/v1.6.0...v2.0.0-alpha
[1.6.0]: https://github.com/Automattic/jetpack-connection-ui/compare/v1.5.3...v1.6.0
[1.5.3]: https://github.com/Automattic/jetpack-connection-ui/compare/v1.5.2...v1.5.3
[1.5.2]: https://github.com/Automattic/jetpack-connection-ui/compare/v1.5.1...v1.5.2
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'f37d45c886631a20a4a063bc140bf971');
<?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '1ea00cf3f16d369648c72ef41f8dea7c');
45 changes: 39 additions & 6 deletions vendor/automattic/jetpack-connection-ui/build/index.css

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Loading

0 comments on commit db420a1

Please sign in to comment.