import{_ as s,o as a,c as n,V as l}from"./chunks/framework.b31a4d00.js";const d=JSON.parse('{"title":"@fesjs/plugin-swc","description":"","frontmatter":{},"headers":[],"relativePath":"reference/plugin/plugins/swc.md"}'),o={name:"reference/plugin/plugins/swc.md"},p=l(`

@fesjs/plugin-swc

介绍

webpack 启用 swc,构建速度更快!

启用方式

package.json 中引入依赖:

json
{
    "dependencies": {
        "@fesjs/fes": "^3.0.0",
        "@fesjs/plugin-swc": "^3.0.0"
    },
}

编译时配置

传对象时使用swc进行编译和压缩,loader配置,默认usage模式。

js
export default {
    swc: {
        loader: {
            env: {
                coreJs: '3.27',
            },
        }
    },
}
`,9),e=[p];function t(c,r,D,F,i,y){return a(),n("div",null,e)}const u=s(o,[["render",t]]);export{d as __pageData,u as default};