
Security News
Feross on Risky Business Weekly Podcast: npm’s Ongoing Supply Chain Attacks
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
fis3-parser-atom
Advanced tools
atom fis3 编译插件
全局安装
npm install -g fis3-parser-atom
本地安装
npm install -D fis3-parser-atom
在你的 fis-conf.js
中添加以下配置:
fis.match('(**)/(*).atom', {
isMod: true,
// fis3 不支持多重后缀,即不支持 .atom.js,只能写 js;
rExt: 'js',
// 由于上边不支持多重后缀,所以我们这里 release 的时候加上后缀
release: '$1/$2.atom.js',
useSameNameRequire: true,
// 这里极为关键,不加 isJsLike 就不把我们当 js 处理了;
isJsLike: true,
// 输出为 commonjs 模块,这里可以按需要来指定 mode,支持 commonjs / amd / umd / global;
parser: fis.plugin('atom', {
mode: 'commonjs',
// 自己定制编译 javascript 代码,可参考 https://www.npmjs.com/package/vip-server-renderer#options
compileJsScript(code) {
return require('babel-core').transform(
code,
{
plugins: [
'replace-object-assign'
],
presets: [
['babel-preset-env', {
include: ['transform-es2015-modules-commonjs']
}]
]
}
).code;
}
})
});
FAQs
atom fis3 编译插件
We found that fis3-parser-atom demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
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.