
Security News
US Government Forces Anthropic to Pull Claude Fable Days After Launch
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.
@wevu/compiler
Advanced tools
@wevu/compiler 提供 Wevu 的编译能力,面向小程序模板与 Vue SFC 的解析、转换与输出。它从 weapp-vite 中抽离出纯编译管线,供 wevu/compiler 与 weapp-vite 等上层工具复用。
pnpm add @wevu/compiler
编译单个 Vue SFC:
import { compileSfc } from '@wevu/compiler'
const result = await compileSfc(
sourceCode,
filename,
{
isPage: true,
template: { /* 模板编译参数 */ },
json: { kind: 'page' },
},
)
console.log(result.script)
console.log(result.template)
使用页面特性工具:
import {
collectWevuPageFeatureFlags,
injectWevuPageFeaturesInJs,
} from '@wevu/compiler'
const flags = collectWevuPageFeatureFlags(sourceCode)
const nextCode = injectWevuPageFeaturesInJs(sourceCode, flags)
compileSfc(compileVueFile)常用选项:
isPage / isAppwarn:自定义警告输出template:模板编译参数json:配置合并策略autoUsingComponents / autoImportTagswevuDefaults:Wevu 默认配置FAQs
wevu 编译器基础包,面向小程序模板的编译与转换
The npm package @wevu/compiler receives a total of 985 weekly downloads. As such, @wevu/compiler popularity was classified as not popular.
We found that @wevu/compiler demonstrated a healthy version release cadence and project activity because the last version was released less than 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.

Security News
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.

Security News
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.