
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
babel-plugin-tiny-import
Advanced tools
export {default as Tool, toolFunction as outerToolFunction} from 'lib/tool';
export * from 'lib/utils';
export {resolve as rlv} from 'lib/path';
exports.join = require('lib/path/join');
module.exports.join = require('lib/path/extname');
module.exports.extname = require('lib/path-2/extname');
export {default as default} from 'index/join';
Input:
import {rlv, join as Join} from 'wrap'
const {outerToolFunction: $outerToolFunction} = require('wrap')
Output:
import { resolve as rlv } from "lib/path";
import Join from "lib/path/extname";
const $outerToolFunction = require("lib/tool").toolFunction;
{
test: /^wrap$/, // RegExp | Function | String
moduleMapper: {} // {} | string | (imported, moduleName) => moduleName | {moduleName: string, ref: string},
easyModuleMapper: {
// `true` means that opt.moduleMapper will be regarded as filename
enable: true,
// watch the opt.moduleMapper file's change.
watch: true,
// the basename of opt.moduleMapper file's *Relative Module*.
basename: false, // true | false | string
resolvePackageAsAbsolute, // boolean | https://www.npmjs.com/package/resolve options, false by default
},
}
the syntax of require
is not supported yet, which are as follow.
exports.supported = require('lib/total/support');
// MemberExpression
exports.notSupported = require('lib/total').notSupported;
// MemberExpression
const notSupported = require('wrap').supported;
const {notSupported: alsoNotSupported} = require('wrap');
let {supported} = require('@befe/wrap');
const notSupported = require('wrap').supported;
const {notSupported: alsoNotSupported} = require('wrap');
let supported = require('lib/total/support');
FAQs
split import from wrap package
The npm package babel-plugin-tiny-import receives a total of 3 weekly downloads. As such, babel-plugin-tiny-import popularity was classified as not popular.
We found that babel-plugin-tiny-import demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.