Bug 1750596 - Moving save to Pocket vendors into their own bundle. r=gvn

Differential Revision: https://phabricator.services.mozilla.com/D136157
This commit is contained in:
Scott 2022-01-19 02:03:31 +00:00
parent eb763b09e7
commit 67a8bb6d9c
10 changed files with 36 additions and 19 deletions

View File

@ -42,6 +42,7 @@ browser/components/enterprisepolicies/schemas/schema.jsm
browser/components/translation/cld2/
# generated or library files in pocket
browser/components/pocket/content/panels/js/tmpl.js
browser/components/pocket/content/panels/js/vendor.bundle.js
browser/components/pocket/content/panels/js/main.bundle.js
# Ignore newtab files

View File

@ -13,6 +13,7 @@
<script src="js/vendor/jquery-2.1.1.min.js"></script>
<script src="js/vendor/handlebars.runtime.js"></script>
<script src="js/tmpl.js"></script>
<script src="js/vendor.bundle.js"></script>
<script src="js/main.bundle.js"></script>
<script src="js/home/entry.js"></script>
</body>

File diff suppressed because one or more lines are too long

View File

@ -12,21 +12,3 @@ object-assign
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/** @license React v17.0.2
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/** @license React v17.0.2
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,17 @@
/** @license React v17.0.2
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/** @license React v17.0.2
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

View File

@ -14,6 +14,7 @@
<script src="js/vendor/handlebars.runtime.js"></script>
<script src="js/vendor/jquery.tokeninput.min.js"></script>
<script src="js/tmpl.js"></script>
<script src="js/vendor.bundle.js"></script>
<script src="js/main.bundle.js"></script>
<script src="js/saved/entry.js"></script>
</body>

View File

@ -13,6 +13,7 @@
<body class="pkt_ext_containersignup" aria-live="polite">
<script src="js/vendor/handlebars.runtime.js"></script>
<script src="js/tmpl.js"></script>
<script src="js/vendor.bundle.js"></script>
<script src="js/main.bundle.js"></script>
<script src="js/signup/entry.js"></script>
</body>

View File

@ -16,6 +16,7 @@ browser.jar:
content/pocket/panels/saved.html (content/panels/saved.html)
content/pocket/panels/signup.html (content/panels/signup.html)
content/pocket/panels/style-guide.html (content/panels/style-guide.html)
content/pocket/panels/js/vendor.bundle.js (content/panels/js/vendor.bundle.js)
content/pocket/panels/js/main.bundle.js (content/panels/js/main.bundle.js)
content/pocket/panels/js/tmpl.js (content/panels/js/tmpl.js)
content/pocket/panels/js/vendor (content/panels/js/vendor/*)

View File

@ -27,4 +27,15 @@ module.exports = {
resolve: {
extensions: [".js", ".jsx"],
},
optimization: {
splitChunks: {
cacheGroups: {
vendor: {
test: /[\\/]node_modules[\\/](react|react-dom)[\\/]/,
name: "vendor",
chunks: "all",
},
},
},
},
};