Package Exports
- @efox/emp-compile-swc
- @efox/emp-compile-swc/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@efox/emp-compile-swc) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
EMP Compile SWC
使用 swc 代替 babel 实现模块编译
安装
npm i @efox/emp-compile-swc -D
# or
pnpm add @efox/emp-compile-swc -D配置
emp-config.js
const {defineConfig} = require('@efox/emp')
const compile = require('@efox/emp-compile-swc')
module.exports = defineConfig({
compile,
})