precachePlugins.js 490 B

12345678910111213141516171819202122232425
  1. /*
  2. Copyright 2019 Google LLC
  3. Use of this source code is governed by an MIT-style
  4. license that can be found in the LICENSE file or at
  5. https://opensource.org/licenses/MIT.
  6. */
  7. import '../_version.js';
  8. const plugins = [];
  9. export const precachePlugins = {
  10. /*
  11. * @return {Array}
  12. * @private
  13. */
  14. get() {
  15. return plugins;
  16. },
  17. /*
  18. * @param {Array} newPlugins
  19. * @private
  20. */
  21. add(newPlugins) {
  22. plugins.push(...newPlugins);
  23. },
  24. };