wp/wp-includes/js/dist/warning.js
changeset 22 8c2e4d02f4ef
parent 21 48c4eec2b7e6
equal deleted inserted replaced
21:48c4eec2b7e6 22:8c2e4d02f4ef
    27 // EXPORTS
    27 // EXPORTS
    28 __webpack_require__.d(__webpack_exports__, {
    28 __webpack_require__.d(__webpack_exports__, {
    29   "default": () => (/* binding */ warning)
    29   "default": () => (/* binding */ warning)
    30 });
    30 });
    31 
    31 
    32 ;// CONCATENATED MODULE: ./node_modules/@wordpress/warning/build-module/utils.js
    32 ;// ./node_modules/@wordpress/warning/build-module/utils.js
    33 /**
    33 /**
    34  * Object map tracking messages which have been logged, for use in ensuring a
    34  * Object map tracking messages which have been logged, for use in ensuring a
    35  * message is only logged once.
    35  * message is only logged once.
    36  *
       
    37  * @type {Set<string>}
       
    38  */
    36  */
    39 const logged = new Set();
    37 const logged = new Set();
    40 
    38 
    41 ;// CONCATENATED MODULE: ./node_modules/@wordpress/warning/build-module/index.js
    39 ;// ./node_modules/@wordpress/warning/build-module/index.js
    42 /**
    40 /**
    43  * Internal dependencies
    41  * Internal dependencies
    44  */
    42  */
    45 
    43 
    46 function isDev() {
    44 function isDev() {
    49 }
    47 }
    50 
    48 
    51 /**
    49 /**
    52  * Shows a warning with `message` if environment is not `production`.
    50  * Shows a warning with `message` if environment is not `production`.
    53  *
    51  *
    54  * @param {string} message Message to show in the warning.
    52  * @param message Message to show in the warning.
    55  *
    53  *
    56  * @example
    54  * @example
    57  * ```js
    55  * ```js
    58  * import warning from '@wordpress/warning';
    56  * import warning from '@wordpress/warning';
    59  *
    57  *