21 Matching Annotations
- Jun 2023
-
github.com github.com
- May 2023
-
github.com github.com
- Nov 2022
- Sep 2021
-
webpack.js.org webpack.js.orgConcepts1
-
Webpack 5 no longer polyfills Node.js core modules automatically which means if you use them in your code running in browsers or alike, you will have to install compatible modules from npm and include them yourself. Here is a list of polyfills webpack has used before webpack 5:
-
-
blog.sindresorhus.com blog.sindresorhus.com
- Mar 2021
-
www.sitepoint.com www.sitepoint.com
-
Again, this is all opinion-based, and due to the sheer number of developers who rely on this technology as their bread and butter, sub-communities and religiousness forms around patterns, anti-patterns, practices, de-facto standards, micro-packages, polyfills, frameworks, build-tools, etc.
-
-
afarkas.github.io afarkas.github.ioWebshim1
Tags
Annotators
URL
-
- Oct 2020
-
github.com github.com
-
Perhaps we should detect URLSearchParams objects differently (using duck typing detection instead of instanceof window.URLSearchParams, for example) but the solution isn't adding a specific polyfill to Axios (as it'd increase the bundle size and still won't work with other polyfills).
-
Also, if you don't put that implementation of URLSearchParams in the global scope you're not using it as a polyfill but a ponyfill, and those are meant for your code, not for external dependencies.
first sighting: ponyfill
-
-
ponyfoo.com ponyfoo.comPony Foo4
-
Sometimes we can’t implement a solution that’s fully spec-compliant, and in those cases using a polyfill might be the wrong answer. A polyfill would translate into telling the rest of the codebase that it’s okay to use the feature, that it’ll work just like in modern browsers, but it might not in edge cases.
-
Polyfills are great for methods like String.prototype.trim because they allow you to use the methods on String instances.
-
A ponyfill is almost the same as a polyfill, but not quite. Instead of patching functionality for older browsers, a ponyfill provides that functionality as a standalone module you can use.
-
When it comes to ES6, a flurry of problems turn polyfills into ineffective vaccines. For one, you simply can’t polyfill language features, such as arrow functions, generators, async/await (ES7), rest and spread parameters, classes, modules, etc.
-
- Sep 2020
-
engineering.mixmax.com engineering.mixmax.com
-
Rollup is a tool that lets you write your application using ES6 modules, even though you can't publish those modules directly to your users, because native support is only just starting to land in browsers. Rollup compiles your modules into a format that all browsers _do_ understand—a single script file—by, essentially, concatenating files together (while reordering and renaming declarations to preserve scope).
-
- Dec 2019
-
blog.logrocket.com blog.logrocket.com
-
If your only reason for using Axios is backward compatibility, you don’t really need an HTTP library. Instead, you can use fetch() with a polyfill like this to implement similar functionality on web browsers that do not support fetch(). To begin using the fetch polyfill, install it via npm command: npm install whatwg-fetch --save
-
-
master.neutrinojs.org master.neutrinojs.org
-
If you need polyfills in your code, consider including core-js in your package.json. This is will configure @babel/present-env to automatically include polyfills based on usage.
-
- Oct 2019
-
polyfill.io polyfill.io
-
- Sep 2019
-
stackoverflow.com stackoverflow.com
-
Object.fromEntries = arr => Object.assign({}, ...arr.map( ([k, v]) => ({[k]: v}) ))
-
-
stackoverflow.com stackoverflow.com
-
Object.fromEntries = arr => Object.assign({}, ...arr.map( ([k, v]) => ({[k]: v}) ));
-