UNPKG

nuxt

Version:

Nuxt is a free and open-source framework with an intuitive and extendable way to create type-safe, performant and production-grade full-stack web applications and websites with Vue.js.

19 lines (18 loc) 387 B
//#region src/head/runtime/island-head.ts /** * No-op `head.push` until the returned `unfreeze` runs. Plugin/transformer * augmentations on the same head are unaffected. */ function freezeHead(head) { const realPush = head.push; head.push = () => ({ dispose: () => {}, patch: () => {}, _i: 0 }); return () => { head.push = realPush; }; } //#endregion export { freezeHead };