1. @ungap/weakrefs
WeakRef and FinalizationGroup for IE11+
@ungap/weakrefs
Package: @ungap/weakrefs
Created by: ungap
Last modified: Thu, 07 Apr 2022 09:33:43 GMT
Version: 0.2.0
License: ISC
Downloads: 4,813
Repository: https://github.com/ungap/weakrefs

Install

npm install @ungap/weakrefs
yarn add @ungap/weakrefs

weakrefs

Build Status Coverage Status Greenkeeper badge WebReflection status

The WeakRef and FinalizationGroup polyfill/sham *

  • CDN global patch via https://unpkg.com/@ungap/weakrefs
  • ESM via import {WeakRef, FinalizationGroup} from '@ungap/weakrefs'
  • CJS via const {WeakRef, FinalizationGroup} = require('@ungap/weakrefs')

* The implementation uses WeakMap and it does not actually trigger the FinalizationGroup callback, unless explicitly asked via fg.cleanupSome(fn).

⚠ Webpack Users

If you have issues just requiring @ungap/weakrefs, be sure you require @ungap/weakrefs/cjs instead.

No issue should happen if you just import the module instead.

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin