Initial boiler plate project
This commit is contained in:
13
node_modules/next/dist/esm/shared/lib/utils/warn-once.js
generated
vendored
Normal file
13
node_modules/next/dist/esm/shared/lib/utils/warn-once.js
generated
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
let warnOnce = (_)=>{};
|
||||
if (process.env.NODE_ENV !== "production") {
|
||||
const warnings = new Set();
|
||||
warnOnce = (msg)=>{
|
||||
if (!warnings.has(msg)) {
|
||||
console.warn(msg);
|
||||
}
|
||||
warnings.add(msg);
|
||||
};
|
||||
}
|
||||
export { warnOnce };
|
||||
|
||||
//# sourceMappingURL=warn-once.js.map
|
||||
Reference in New Issue
Block a user