
Product
Socket Firewall Now Blocks Malicious VS Code and Open VSX Extensions
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.
@pisell/rsbuild-plugin-lowcode
Advanced tools
Rsbuild plugin for low-code material development and build workflows.
@pisell/rsbuild-plugin-lowcode 是一个面向低代码物料场景的 Rsbuild 插件,提供:
pnpm add -D @pisell/rsbuild-plugin-lowcode
同时请确保工程中已安装并配置 @rsbuild/core。
在 rsbuild.config.js/ts 中注册插件:
import { defineConfig } from '@rsbuild/core';
import { pluginLowcode } from '@pisell/rsbuild-plugin-lowcode';
export default defineConfig({
plugins: [
pluginLowcode({
library: 'PrivateMaterials',
engineScope: '@alilc',
lowcodeDir: 'lowcode',
buildTarget: 'build',
}),
],
});
更完整示例见:examples/rsbuild.config.js。
插件默认会为样式添加 #body 选择器前缀。若需要自行控制 PostCSS 插件列表,可以在 Rsbuild 顶层配置 tools.postcss,或传入 pluginLowcode({ tools: { postcss } })。插件参数里的 tools.postcss 优先,插件不会重复注入。
import addRootSelector from 'postcss-add-root-selector';
export default defineConfig({
plugins: [
pluginLowcode({
tools: {
postcss: (_, { addPlugins }) => {
addPlugins([
{
postcssPlugin: 'lowcode-root-selector',
Once(root, helpers) {
const from = root.source?.input?.file || helpers.result?.opts?.from || '';
if (/pisell-materials\.tw\.css$/.test(from)) {
return;
}
const plugin = addRootSelector({
rootSelector: '#body',
});
return plugin.Once?.(root, helpers);
},
},
]);
},
},
}),
],
});
Alt 调试模式允许你在开发组件时,将本地正在开发的组件实时注入到线上低代码引擎中进行调试,无需发布即可测试组件效果。
export default defineConfig({
server: {
port: 3000, // dev server 端口
https: true, // 线上 HTTPS 设计器调试时建议开启,供 HMR 使用 wss://
},
plugins: [
pluginLowcode({
library: 'MyComponent',
// Alt 调试模式配置
alt: {
enabled: true, // 启用 alt 调试模式
port: 8899, // inject server 端口(默认 8899)
openBrowser: true, // 自动打开浏览器(默认 true)
openUrl: 'https://lowcode-engine.cn/demo/demo-general/index.html?debug',
usePrivateIp: false, // 使用内网 IP(默认 false,使用 127.0.0.1)
},
}),
],
});
| 配置项 | 类型 | 默认值 | 说明 |
|---|---|---|---|
alt.enabled | boolean | false | 是否启用 alt 调试模式 |
alt.port | number | 8899 | inject server 监听端口 |
alt.openBrowser | boolean | true | 是否自动打开浏览器 |
alt.openUrl | string | https://lowcode-engine.cn/demo/demo-general/index.html?debug | 自动打开的 URL |
alt.usePrivateIp | boolean | false | 是否使用内网 IP(用于跨设备调试) |
.
├── index.js # 包入口
├── src/ # 所有功能代码与模板资源
│ ├── plugin.js
│ ├── environments.js
│ ├── logger.js
│ ├── constants.js
│ ├── entries.js
│ ├── assets.js
│ ├── inject/ # Alt 调试模式
│ │ ├── bootstrap.js # Alt 模式启动编排
│ │ ├── server.js # Inject server (原生 http)
│ │ ├── registry.js # 注册信息管理
│ │ └── utils.js # 工具函数
│ ├── utils/
│ ├── templates/
│ └── public/
├── examples/ # 示例配置
├── README.md
└── package.json
FAQs
Rsbuild plugin for low-code material development and build workflows.
The npm package @pisell/rsbuild-plugin-lowcode receives a total of 18 weekly downloads. As such, @pisell/rsbuild-plugin-lowcode popularity was classified as not popular.
We found that @pisell/rsbuild-plugin-lowcode demonstrated a healthy version release cadence and project activity because the last version was released less than 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.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.

Research
More than 140 Mastra npm packages were compromised in a supply chain attack that used a typosquatted dependency to deliver a cross-platform infostealer during installation.

Research
/Security News
A new npm package tests AI malware scanners with prompt injection, safety-triggering comments, context flooding, and obfuscated JavaScript.