Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
broccoli-es6-module-transpiler
Advanced tools
Transpiling to AMD:
var transpileES6 = require('broccoli-es6-module-transpiler');
var transpiledLib = transpileES6(lib, {
moduleName: function(filePath) {
return filePath.replace(/.js$/, '');
}
});
Transpiling to CommonJS:
var transpileES6 = require('broccoli-es6-module-transpiler');
var transpiledLib = transpileES6(lib, {
type: 'cjs'
});
transpileES6(inputTree, options)
options.type
{String}
The type of module to transpile to.
Possible values: amd
, cjs
, yui
or globals
.
Default: amd
.
options.moduleName
{Function, String, null}
The module name that is passed to the transpiler for each file.
moduleName
is null
an anonymous module will be generated.moduleName
is a string it will be passed directly the transpiler for all files.moduleName
is a function it will be called with the path of the current file as its sole argument. The return value of the function will be passed to the transpiler.Default: null
.
options.options
{Function, Object, null}
The options that are passed to the transpiler for each file.
options
is null
no options will be passed.options
is an object it will be passed directly the transpiler for all files.options
is a function it will be called with the path of the current file as its sole argument. The return value of the function will be passed to the transpiler.Default: null
.
FAQs
Broccoli plugin for Square's ES6 Module Transpiler
We found that broccoli-es6-module-transpiler demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.