@moneko/core 3.24.11 → 3.24.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/build.mjs +1 -1
- package/package.json +1 -1
package/lib/build.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from"webpack";import{merge as r}from"webpack-merge";import i from"./build/common.mjs";import{CONFIG as m}from"./config.mjs";import e from"./module.config.mjs";import t from"./plugin/done.mjs";import n from"./utils/print.mjs";import s from"./utils/seo.mjs";import a from"./utils/progress.mjs";import l from"chalk";import{empty as p}from"./utils/index.mjs";let{ProgressPlugin:c}=o,f=r(i,{module:e(!1),plugins:[m.done&&new t({done:m.done}),!!m.bar&&new c({handler(o,r,...i){let e=m.bar;a({showBar:!0,percentage:o,title:e.name||"Build",color:e.color,info:i.length?`[${r}] ${i.join(" ")}`:"",output:f.output?.path})}})].filter(Boolean)}),u=o(f);async function h(){let o=await new Promise((o,r)=>{u.run((i,m)=>{i&&r(i),m?o(m):r(Error("编译过程中没有生成统计信息"))})});(o.hasErrors()||o.hasWarnings())&&function(o){let{warnings:r,errors:i}=o.compilation;r.forEach(o=>{n(l.yellowBright(o.message))}),i.forEach(o=>{n(l.redBright(o.message))})}(o),await new Promise(r=>{o.compilation.compiler.cache.shutdown(o=>{o&&
|
|
1
|
+
import o from"webpack";import{merge as r}from"webpack-merge";import i from"./build/common.mjs";import{CONFIG as m}from"./config.mjs";import e from"./module.config.mjs";import t from"./plugin/done.mjs";import n from"./utils/print.mjs";import s from"./utils/seo.mjs";import a from"./utils/progress.mjs";import l from"chalk";import{empty as p}from"./utils/index.mjs";let{ProgressPlugin:c}=o,f=r(i,{module:e(!1),plugins:[m.done&&new t({done:m.done}),!!m.bar&&new c({handler(o,r,...i){let e=m.bar;a({showBar:!0,percentage:o,title:e.name||"Build",color:e.color,info:i.length?`[${r}] ${i.join(" ")}`:"",output:f.output?.path})}})].filter(Boolean)}),u=o(f);async function h(){let o=await new Promise((o,r)=>{u.run((i,m)=>{i&&r(i),m?o(m):r(Error("编译过程中没有生成统计信息"))})});(o.hasErrors()||o.hasWarnings())&&function(o){let{warnings:r,errors:i}=o.compilation;r.forEach(o=>{n(l.yellowBright(o.message))}),i.forEach(o=>{n(l.redBright(o.message))})}(o),await new Promise(r=>{o.compilation.compiler.cache.shutdown(o=>{o&&n(l.redBright(o)),r()})}),m.seo&&s()}process.on("exit",p),await h();
|