
Product
Socket MCP Adds Org Alerts, Threat Feed Review, and Package Inspection
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.
babel-preset-wakeadmin
Advanced tools
$ pnpm add babel-preset-wakeadmin -D
babel.config.js
module.exports = {
// 关闭 vue 自己的 JSX 插件
presets: [['@vue/cli-plugin-babel/preset', { jsx: false }], 'babel-preset-wakeadmin'],
};
在 vue-cli 中 ts/tsx 文件会率先经过 ts-loader 转换,因此 tsconfig.json 也需要配置才行:
{
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"strict": true,
+ // 支持 JSX, 不转换 JSX,让 babel 统一处理就行
+ "jsx": "preserve",
+ "jsxImportSource": "@wakeadmin/h",
"moduleResolution": "node",
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"forceConsistentCasingInFileNames": true,
"useDefineForClassFields": true,
"sourceMap": true,
"baseUrl": ".",
"paths": {
"@/*": ["src/*"]
},
"lib": ["esnext", "dom", "dom.iterable", "scripthost"],
+ // 支持 装饰器语法
+ "experimentalDecorators": true,
+ "emitDecoratorMetadata": true,
+ // 支持 @wakeadmin/framework @observable 等语法
+ "useDefineForClassFields": true,
},
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.vue", "tests/**/*.ts", "tests/**/*.tsx"],
"exclude": ["node_modules"]
}
FAQs
wakeadmin babel 配置,支持 decorator
We found that babel-preset-wakeadmin 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 MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.

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.