webpack.js 624 B

123456789101112131415161718192021
  1. "use strict";
  2. /*
  3. Copyright 2019 Google LLC
  4. Use of this source code is governed by an MIT-style
  5. license that can be found in the LICENSE file or at
  6. https://opensource.org/licenses/MIT.
  7. */
  8. const joi = require('@hapi/joi');
  9. const defaults = require('../defaults');
  10. const regExpObject = require('../objects/reg-exp');
  11. module.exports = {
  12. chunks: joi.array().items(joi.string()),
  13. exclude: joi.array().items(joi.string(), regExpObject, joi.func().arity(1)).default(defaults.exclude),
  14. excludeChunks: joi.array().items(joi.string()),
  15. include: joi.array().items(joi.string(), regExpObject, joi.func().arity(1))
  16. };