Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@vrbo/nimbuild-corejs
Advanced tools
Performant generation of coreJS polyfill bundles optimized for target browsers at runtime
Performant generation of coreJS polyfill bundles optimized for target browsers at runtime
A service like this one integrated with a good polyfills source like core-js, which only loads the needed polyfills by statically analyzing the source like Babel's useBuiltIns: usage option does could cause a revolution in the way we think about polyfills.
This module is the core of what is needed to fulfill the next generation approach to loading polyfills.
npm install --save @vrbo/nimbuild-corejs
Import module, configure, and prime cache
const {
addSupported,
clearSupported,
initializeSupported,
primeCache,
serializeCache,
deserializeCache
} = require('@vrbo/nimbuild-corejs');
// Initialize supported corejs modules
initializeSupported(); // use `nimbuild-corejs` defaults
// or customize supported corejs modules
initializeSupported({
'my-default': {
include: [
/* custom core-js modules */
],
exclude: [
/* custom core-js modules */
]
}
});
// Runs webpacknimbuild.run() on every browser platform
await primeCache();
// Get serialized cache
const serializedData = serializeCache();
// Set cache from serialized data
deserializeCache(serializedData);
When processing an HTTP request, generate coreJS polyfill string with this usage:
const {getPolyfillString} = require('@vrbo/nimbuild-corejs');
const coreJSData = await getPolyfillString({
include: ['es.*'],
exclude: [],
logger: {log: console.log},
minify: true,
uaString: http.headers['user-agent']
});
return coreJSData.script; // polyfill string
npm start
This projects supports auto-formatting of source code! Simply find your favorite IDE from the list in the following list: https://prettier.io/docs/en/editors.html
For VSCode support, perform the following steps:
ext install esbenp.prettier-vscode
FAQs
Performant generation of coreJS polyfill bundles optimized for target browsers at runtime
We found that @vrbo/nimbuild-corejs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 9 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.