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.
@xsyx/common-portal
Advanced tools
import commonPortal from '@xsyx/common-portal'
// use
<common-portal injections brand system-name nav-src default-open default-active/>
如: m-basic-setting, m-basic-userlist
vue 默认
new Vue({
el: selector,
render(h){
return h(App);
},
})
注入 portal 上下文
export default function(selector, context){
return new Vue({
el: selector,
render(h){
return h(App);
},
})
}
module.exports = {
filenameHashing: false,
configureWebpack: () => ({
// ...
// 取消代码分割
optimization: {
splitChunks: false
},
// 抽出公共资源减少打包体积
externals: {
vue: 'Vue',
'element-ui': 'ELEMENT',
}
// ...
}),
// 样式内联
css: {
extract: false
},
// ...
}
FAQs
```javascript import commonPortal from '@xsyx/common-portal'
We found that @xsyx/common-portal demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 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.