@empjs/cli 3.0.0-beta.27 → 3.0.0-beta.28

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.
@@ -1,2 +0,0 @@
1
- declare let ep: any;
2
- export default ep;
@@ -1,14 +0,0 @@
1
- declare const _default: {
2
- path: string;
3
- timeout: number;
4
- overlay: boolean;
5
- reload: boolean;
6
- log: boolean;
7
- warn: boolean;
8
- name: string;
9
- autoConnect: boolean;
10
- overlayStyles: {};
11
- overlayWarnings: boolean;
12
- ansiColors: {};
13
- };
14
- export default _default;
@@ -1,6 +0,0 @@
1
- export declare const pathMatch: (url: string, path: string) => boolean;
2
- export default function webpackHotMiddleware(compiler: any, opts?: any): {
3
- (req: any, res: any, next: any): any;
4
- publish(payload: any): void;
5
- close(): void;
6
- };
@@ -1,6 +0,0 @@
1
- export declare function showProblems(type: any, lines: any): void;
2
- export declare function clear(): void;
3
- export default function (options: any): {
4
- showProblems: typeof showProblems;
5
- clear: typeof clear;
6
- };
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- var pe=Object.defineProperty;var l=(r,t)=>()=>(r&&(t=r(r=0)),t);var B=(r,t)=>{for(var e in t)pe(r,e,{get:t[e],enumerable:!0})};import{fileURLToPath as ae}from"node:url";import{dirname as le}from"node:path";import{readFile as ce}from"node:fs/promises";import ht from"node:module";import G from"node:path";var ft,me,U,he,ut,gt,dt=l(()=>{"use strict";ft=ae(import.meta.url),me=le(ft),U=async r=>{try{let t=await ce(r);return JSON.parse(t)}catch(t){console.error(t)}},he=ht.createRequire(import.meta.url),ut=(r,t)=>{let e=he;return t&&(e=ht.createRequire(t)),e.resolve(r)},gt=G.resolve(me,ft).replace(`${G.sep}dist${G.sep}index.js`,"")});import E from"@rspack/core";import yt from"fs";var I,bt,vt=l(()=>{"use strict";I=class{store;async setup(t){this.store=t;let e=[this.define(),this.anylayze(),this.progress(),this.copy(),this.empShare(),this.minify()];await Promise.all(e)}async anylayze(){if(!this.store.cliOptions.analyze)return;let{default:{BundleAnalyzerPlugin:t}}=await import("webpack-bundle-analyzer");this.store.chain.plugin("bundleAnalyzerPlugin").use(t,[{}])}async define(){this.store.chain.plugin("definePlugin").use(E.DefinePlugin,[this.store.empConfig.define])}async copy(){let t=this.store.resolve("public");yt.existsSync(t)&&yt.readdirSync(t).length>0&&this.store.chain.plugin("copyRspackPlugin").use(E.CopyRspackPlugin,[{patterns:[{from:t,to:this.store.resolve("dist")}]}])}async progress(){this.store.empConfig.debug.progress&&this.store.chain.plugin("progressPlugin").use(E.ProgressPlugin,[{prefix:"EMP"}])}async empShare(){let{config:t,version:e}=this.store.empConfig.empShareLib;if(!t.name)return;let{ModuleFederationPluginV1:i,ModuleFederationPlugin:o}=E.container,p=e===1?i:o;this.store.chain.plugin("empShare").use(p,[this.store.empConfig.empShareLib.pluginConfig])}minify(){this.store.chain.optimization.minimize(this.store.mode==="production"),this.store.chain.optimization.minimizer("minJs").use(E.SwcJsMinimizerRspackPlugin,[this.store.empConfig.build.minOptions]),this.store.chain.optimization.minimizer("minCss").use(E.SwcCssMinimizerRspackPlugin,[{}])}},bt=new I});var H,Ct,wt=l(()=>{"use strict";H=class{store;async setup(t){this.store=t;let e=[this.react(),this.files(),this.scripts()];await Promise.all(e)}async scripts(){let{isDev:t}=this.store,e=this.store.reactVersion?{react:{runtime:this.store.empConfig.reactRuntime,development:t,refresh:t}}:{};this.store.chain.merge({module:{parser:{javascript:{exportsPresence:"error",importExportsPresence:"error"}},rule:{mjs:{test:/\.m?js/,resolve:{fullySpecified:!1}},typescript:{test:/\.(ts|tsx)$/,sideEffects:!1,use:[{loader:"builtin:swc-loader",options:{jsc:{target:this.store.empConfig.build.target,parser:{syntax:"typescript",decorators:!0,tsx:!0,dynamicImport:!0},transform:e}}}]},javascript:{test:/\.(js|jsx)$/,sideEffects:!1,use:[{loader:"builtin:swc-loader",options:{jsc:{target:this.store.empConfig.build.target,parser:{syntax:"ecmascript",jsx:!0,decorators:!0,decoratorsBeforeExport:!1},transform:e}}}]}}}})}async react(){if(this.store.reactVersion&&(this.store.empConfig.react.svgr&&this.store.chain.merge({module:{rule:{svg:{test:/\.svg$/,issuer:/\.[jt]sx?$/,resourceQuery:/svgr/,use:[{loader:this.store.importResolve("@svgr/webpack"),options:{}}]}}}}),this.store.isDev&&this.store.empConfig.react.hmr)){let{default:t}=await import("@rspack/plugin-react-refresh"),e={};this.store.empConfig.empShareLib.config.name&&(e.library=this.store.empConfig.empShareLib.config.name),this.store.chain.plugin("plugin-react-refresh").use(t,[e])}}async files(){(!this.store.reactVersion||!this.store.empConfig.react.svgr)&&this.store.chain.merge({module:{rule:{svg:{test:/\.svg$/,type:"asset/resource"}}}}),this.store.chain.merge({module:{rule:{inline:{resourceQuery:/inline/,type:"asset/inline"}}}}),this.store.chain.merge({module:{rule:{image:{test:/\.(png|jpe?g|gif|webp|ico)$/i,type:"asset/resource"},fonts:{test:/\.(|otf|ttf|eot|woff|woff2)$/i,type:"asset/resource"},svga:{test:/\.(svga)$/i,type:"asset/resource"}}}})}},Ct=new H});var N,xt,St=l(()=>{"use strict";N=class{store;async setup(t){this.store=t;let e=[this.common(),this.stats(),this.devServer(),this.optimization()];await Promise.all(e)}async common(){this.store.merge({experiments:{rspackFuture:{},outputModule:this.store.empConfig.isESM,topLevelAwait:!0},target:this.store.empConfig.target,infrastructureLogging:this.store.empConfig.debug.infrastructureLogging,context:this.store.root,mode:this.store.mode,cache:!0,devtool:this.store.empConfig.build.sourcemap?"source-map":!1,builtins:{css:{modules:{localIdentName:this.store.isDev?"[path][name]-[local]-[hash:5]":"[local]-[hash:5]"}}},output:this.store.empConfig.output,resolve:this.store.empConfig.resolve,externals:this.store.empConfig.externals})}async stats(){this.store.merge({stats:{colors:!0,all:!1,assets:!1,chunks:!1,timings:!0,version:!0}})}async devServer(){this.store.merge({devServer:this.store.empConfig.server})}async optimization(){this.store.chain.merge({optimization:{chunkIds:this.store.empConfig.build.chunkIds,minimize:this.store.empConfig.build.minify}})}},xt=new N});import fe from"chalk";function Et(){process.stdout.write(process.platform==="win32"?"\x1B[2J\x1B[0f":"\x1B[2J\x1B[3J\x1B[H")}function g(r,...t){for(let e of t)for(let s in e){let i=e[s],o=r[s];if(Object(i)==i&&Object(o)===o){r[s]=g(o,i);continue}r[s]=e[s]}return r}var R,Ot,y=l(()=>{"use strict";R=(r="",t="")=>{let e=r.replace("^","").split("."),s=t.replace("^","").split("."),i=Math.max(e.length,s.length),o=0;for(let p=0;p<i;p++){let c=e.length>p?e[p]:0,h=isNaN(Number(c))?c.charCodeAt():Number(c),$=s.length>p?s[p]:0,m=isNaN(Number($))?$.charCodeAt():Number($);if(h<m){o=-1;break}else if(h>m){o=1;break}}return o},Ot=r=>{r=r/1e3;let t=s=>fe.bold(s);if(r<1)return`${r*1e3} ms`;if(r<10){let s=r>=.01?2:3;return`${t(r.toFixed(s))} s`}if(r<60)return`${t(r.toFixed(1))} s`;let e=r/60;return`${t(e.toFixed(2))} m`}});import $t from"html-webpack-plugin";import ue from"fast-glob";import x from"node:path";var _,V,Pt,kt=l(()=>{"use strict";y();_=class{importMap;constructor(t){this.importMap=t}apply(t){t.hooks.compilation.tap("HtmlImportMapPlugin",e=>{$t.getHooks(e).alterAssetTagGroups.tapAsync("HtmlImportMapPlugin",(s,i)=>{s.headTags.push({tagName:"script",attributes:{type:"importmap"},innerHTML:`${JSON.stringify(this.importMap,null,2)}`,voidTag:!1,meta:{plugin:void 0}}),i(null,s)})})}},V=class{store;entriesConfig={};async setup(t){this.store=t,await this.init(),this.toConfig()}setHtmlConfig(t,e){return t.template=this.setTemplate(t.template),t.favicon=this.setFavicion(t.favicon),t.chunks=e,t.filename=`${e[0]}.html`,this.store.empConfig.base&&(t.publicPath=this.store.empConfig.base),this.store.empConfig.empShareLib&&(t.files=g(t.files,this.store.empConfig.empShareLib.externalAssets)),t.tags=t.tags||{},t}setChunk(t){return t.replace(x.extname(t),"").replace(`${this.store.empConfig.appSrc}${x.sep}`,"")}setTemplate(t){return t?this.store.resolve(t):this.store.empResolve(x.join("template","index.html"))}setFavicion(t){return t?this.store.resolve(t):this.store.empResolve(x.join("template","favicon.ico"))}setEntryItem(t,e,s){s=s||this.store.resolve(x.join(this.store.empConfig.appSrc,t));let i=this.setChunk(t);this.entriesConfig[i]={entry:{[i]:s},html:this.setHtmlConfig(e,[i])}}setRspackHtmlPlugin(t,e){this.store.chain.plugin(`html-plugin-${e}`).use($t,[t]),this.store.empConfig.empShareLib.useImportMap&&this.store.chain.plugin(`html-plugin-import-map-${e}`).use(_,[this.store.empConfig.empShareLib.importMap])}setRspackEntry(t){this.store.merge({entry:t})}async init(){let t=x.join(this.store.appSrc,this.store.empConfig.appEntry?this.store.empConfig.appEntry:"index.{ts,tsx,jsx,js}").replace(/\\/g,"/"),e=await ue([t]);if(e[0]){let s=x.join(this.store.empConfig.appSrc,Object.keys(this.store.empConfig.entries).length>0&&this.store.empConfig.appEntry?this.store.empConfig.appEntry:"index");this.setEntryItem(s,this.store.empConfig.html,e[0])}if(Object.keys(this.store.empConfig.entries).length>0)for(let[s,i]of Object.entries(this.store.empConfig.entries))this.setEntryItem(s,{...this.store.empConfig.html,...i})}toConfig(){for(let[t,e]of Object.entries(this.entriesConfig))this.setRspackHtmlPlugin(e.html,t),this.setRspackEntry(e.entry)}},Pt=new V});var J,Rt,Lt=l(()=>{"use strict";J=class{store;async setup(t){this.store=t;let e=[this.sass(),this.less(),this.css()];await Promise.all(e)}async sass(){let t={loader:this.store.importResolve("sass-loader"),options:{}};this.store.chain.merge({module:{rule:{sass:{test:/\.(sass|scss)$/,use:{postcss:this.postcss,sassLoader:t},type:"css/auto"}}}})}async less(){let t={loader:this.store.importResolve("less-loader"),options:{lessOptions:{javascriptEnabled:!0}}};this.store.chain.merge({module:{rule:{less:{test:/\.less$/,use:{postcss:this.postcss,lessLoader:t},type:"css/auto"}}}})}async css(){this.store.chain.merge({module:{rule:{css:{test:/\.css$/,use:{postcss:this.postcss},type:"css/auto"}}}})}get postcss(){return{loader:this.store.importResolve("postcss-loader"),options:{postcssOptions:{plugins:this.store.empConfig.css.postcss}}}}},Rt=new J});var W,jt,Tt=l(()=>{"use strict";vt();wt();St();kt();Lt();W=class{store;async setup(t){this.store=t;let e=[xt.setup(this.store),Ct.setup(this.store),bt.setup(this.store),Pt.setup(this.store),Rt.setup(this.store)];await Promise.all(e),await this.store.empConfig.plugins(),await this.store.empConfig.chain()}},jt=new W});import f from"chalk";import{table as ge}from"table";var X,a,b=l(()=>{"use strict";X=class{pname="";logLevel="debug";setup({pname:t,logLevel:e}){this.pname=t,e&&(this.logLevel=e)}debug=(...t)=>["debug"].includes(this.logLevel)&&console.log(...t);info=(...t)=>["debug","info"].includes(this.logLevel)&&console.log(...t);warn=(...t)=>["debug","info","warn"].includes(this.logLevel)&&console.warn(...t);error=(...t)=>["debug","info","warn","error"].includes(this.logLevel)&&console.error(...t);blue=t=>{console.log(`${f.white.bgBlue(this.pname)}${f.blue.bgWhite(` ${t} `)}
1
+ var pe=Object.defineProperty;var l=(r,t)=>()=>(r&&(t=r(r=0)),t);var B=(r,t)=>{for(var e in t)pe(r,e,{get:t[e],enumerable:!0})};import{fileURLToPath as ae}from"node:url";import{dirname as le}from"node:path";import{readFile as ce}from"node:fs/promises";import ht from"node:module";import G from"node:path";var ft,me,U,he,ut,gt,dt=l(()=>{"use strict";ft=ae(import.meta.url),me=le(ft),U=async r=>{try{let t=await ce(r);return JSON.parse(t)}catch(t){console.error(t)}},he=ht.createRequire(import.meta.url),ut=(r,t)=>{let e=he;return t&&(e=ht.createRequire(t)),e.resolve(r)},gt=G.resolve(me,ft).replace(`${G.sep}dist${G.sep}index.js`,"")});import E from"@rspack/core";import yt from"fs";var I,bt,vt=l(()=>{"use strict";I=class{store;async setup(t){this.store=t;let e=[this.define(),this.anylayze(),this.progress(),this.copy(),this.empShare(),this.minify()];await Promise.all(e)}async anylayze(){if(!this.store.cliOptions.analyze)return;let{default:{BundleAnalyzerPlugin:t}}=await import("webpack-bundle-analyzer");this.store.chain.plugin("bundleAnalyzerPlugin").use(t,[{}])}async define(){this.store.chain.plugin("definePlugin").use(E.DefinePlugin,[this.store.empConfig.define])}async copy(){let t=this.store.resolve("public");yt.existsSync(t)&&yt.readdirSync(t).length>0&&this.store.chain.plugin("copyRspackPlugin").use(E.CopyRspackPlugin,[{patterns:[{from:t,to:this.store.resolve("dist")}]}])}async progress(){this.store.empConfig.debug.progress&&this.store.chain.plugin("progressPlugin").use(E.ProgressPlugin,[{prefix:"EMP"}])}async empShare(){let{config:t,version:e}=this.store.empConfig.empShareLib;if(!t.name)return;let{ModuleFederationPluginV1:i,ModuleFederationPlugin:o}=E.container,p=e===1?i:o;this.store.chain.plugin("empShare").use(p,[this.store.empConfig.empShareLib.pluginConfig])}minify(){this.store.chain.optimization.minimize(this.store.mode==="production"),this.store.chain.optimization.minimizer("minJs").use(E.SwcJsMinimizerRspackPlugin,[this.store.empConfig.build.minOptions]),this.store.chain.optimization.minimizer("minCss").use(E.SwcCssMinimizerRspackPlugin,[{}])}},bt=new I});var H,Ct,wt=l(()=>{"use strict";H=class{store;async setup(t){this.store=t;let e=[this.react(),this.files(),this.scripts()];await Promise.all(e)}async scripts(){let{isDev:t}=this.store,e=this.store.reactVersion?{react:{runtime:this.store.empConfig.reactRuntime,development:t,refresh:t}}:{};this.store.chain.merge({module:{parser:{javascript:{exportsPresence:"error",importExportsPresence:"error"}},rule:{mjs:{test:/\.m?js/,resolve:{fullySpecified:!1}},typescript:{test:/\.(ts|tsx)$/,sideEffects:!1,use:[{loader:"builtin:swc-loader",options:{jsc:{target:this.store.empConfig.build.target,parser:{syntax:"typescript",decorators:!0,tsx:!0,dynamicImport:!0},transform:e}}}]},javascript:{test:/\.(js|jsx)$/,sideEffects:!1,use:[{loader:"builtin:swc-loader",options:{jsc:{target:this.store.empConfig.build.target,parser:{syntax:"ecmascript",jsx:!0,decorators:!0,decoratorsBeforeExport:!1},transform:e}}}]}}}})}async react(){if(this.store.reactVersion&&(this.store.empConfig.react.svgr&&this.store.chain.merge({module:{rule:{svg:{test:/\.svg$/,issuer:/\.[jt]sx?$/,resourceQuery:/svgr/,use:[{loader:this.store.importResolve("@svgr/webpack"),options:{}}]}}}}),this.store.isDev&&this.store.empConfig.react.hmr)){let{default:t}=await import("@rspack/plugin-react-refresh"),e={};this.store.empConfig.empShareLib.config.name&&(e.library=this.store.empConfig.empShareLib.config.name),this.store.chain.plugin("plugin-react-refresh").use(t,[e])}}async files(){(!this.store.reactVersion||!this.store.empConfig.react.svgr)&&this.store.chain.merge({module:{rule:{svg:{test:/\.svg$/,type:"asset/resource"}}}}),this.store.chain.merge({module:{rule:{inline:{resourceQuery:/inline/,type:"asset/inline"}}}}),this.store.chain.merge({module:{rule:{image:{test:/\.(png|jpe?g|gif|webp|ico)$/i,type:"asset/resource"},fonts:{test:/\.(|otf|ttf|eot|woff|woff2)$/i,type:"asset/resource"},svga:{test:/\.(svga)$/i,type:"asset/resource"}}}})}},Ct=new H});var N,xt,St=l(()=>{"use strict";N=class{store;async setup(t){this.store=t;let e=[this.common(),this.stats(),this.devServer(),this.optimization()];await Promise.all(e)}async common(){this.store.merge({experiments:{rspackFuture:{newTreeshaking:!0},outputModule:this.store.empConfig.isESM,topLevelAwait:!0},target:this.store.empConfig.target,infrastructureLogging:this.store.empConfig.debug.infrastructureLogging,context:this.store.root,mode:this.store.mode,cache:!0,devtool:this.store.empConfig.build.sourcemap?"source-map":!1,builtins:{css:{modules:{localIdentName:this.store.isDev?"[path][name]-[local]-[hash:5]":"[local]-[hash:5]"}}},output:this.store.empConfig.output,resolve:this.store.empConfig.resolve,externals:this.store.empConfig.externals})}async stats(){this.store.merge({stats:{colors:!0,all:!1,assets:!1,chunks:!1,timings:!0,version:!0}})}async devServer(){this.store.merge({devServer:this.store.empConfig.server})}async optimization(){this.store.chain.merge({optimization:{chunkIds:this.store.empConfig.build.chunkIds,minimize:this.store.empConfig.build.minify}})}},xt=new N});import fe from"chalk";function Et(){process.stdout.write(process.platform==="win32"?"\x1B[2J\x1B[0f":"\x1B[2J\x1B[3J\x1B[H")}function g(r,...t){for(let e of t)for(let s in e){let i=e[s],o=r[s];if(Object(i)==i&&Object(o)===o){r[s]=g(o,i);continue}r[s]=e[s]}return r}var R,Ot,y=l(()=>{"use strict";R=(r="",t="")=>{let e=r.replace("^","").split("."),s=t.replace("^","").split("."),i=Math.max(e.length,s.length),o=0;for(let p=0;p<i;p++){let c=e.length>p?e[p]:0,h=isNaN(Number(c))?c.charCodeAt():Number(c),$=s.length>p?s[p]:0,m=isNaN(Number($))?$.charCodeAt():Number($);if(h<m){o=-1;break}else if(h>m){o=1;break}}return o},Ot=r=>{r=r/1e3;let t=s=>fe.bold(s);if(r<1)return`${r*1e3} ms`;if(r<10){let s=r>=.01?2:3;return`${t(r.toFixed(s))} s`}if(r<60)return`${t(r.toFixed(1))} s`;let e=r/60;return`${t(e.toFixed(2))} m`}});import $t from"html-webpack-plugin";import ue from"fast-glob";import x from"node:path";var _,V,Pt,kt=l(()=>{"use strict";y();_=class{importMap;constructor(t){this.importMap=t}apply(t){t.hooks.compilation.tap("HtmlImportMapPlugin",e=>{$t.getHooks(e).alterAssetTagGroups.tapAsync("HtmlImportMapPlugin",(s,i)=>{s.headTags.push({tagName:"script",attributes:{type:"importmap"},innerHTML:`${JSON.stringify(this.importMap,null,2)}`,voidTag:!1,meta:{plugin:void 0}}),i(null,s)})})}},V=class{store;entriesConfig={};async setup(t){this.store=t,await this.init(),this.toConfig()}setHtmlConfig(t,e){return t.template=this.setTemplate(t.template),t.favicon=this.setFavicion(t.favicon),t.chunks=e,t.filename=`${e[0]}.html`,this.store.empConfig.base&&(t.publicPath=this.store.empConfig.base),this.store.empConfig.empShareLib&&(t.files=g(t.files,this.store.empConfig.empShareLib.externalAssets)),t.tags=t.tags||{},t}setChunk(t){return t.replace(x.extname(t),"").replace(`${this.store.empConfig.appSrc}${x.sep}`,"")}setTemplate(t){return t?this.store.resolve(t):this.store.empResolve(x.join("template","index.html"))}setFavicion(t){return t?this.store.resolve(t):this.store.empResolve(x.join("template","favicon.ico"))}setEntryItem(t,e,s){s=s||this.store.resolve(x.join(this.store.empConfig.appSrc,t));let i=this.setChunk(t);this.entriesConfig[i]={entry:{[i]:s},html:this.setHtmlConfig(e,[i])}}setRspackHtmlPlugin(t,e){this.store.chain.plugin(`html-plugin-${e}`).use($t,[t]),this.store.empConfig.empShareLib.useImportMap&&this.store.chain.plugin(`html-plugin-import-map-${e}`).use(_,[this.store.empConfig.empShareLib.importMap])}setRspackEntry(t){this.store.merge({entry:t})}async init(){let t=x.join(this.store.appSrc,this.store.empConfig.appEntry?this.store.empConfig.appEntry:"index.{ts,tsx,jsx,js}").replace(/\\/g,"/"),e=await ue([t]);if(e[0]){let s=x.join(this.store.empConfig.appSrc,Object.keys(this.store.empConfig.entries).length>0&&this.store.empConfig.appEntry?this.store.empConfig.appEntry:"index");this.setEntryItem(s,this.store.empConfig.html,e[0])}if(Object.keys(this.store.empConfig.entries).length>0)for(let[s,i]of Object.entries(this.store.empConfig.entries))this.setEntryItem(s,{...this.store.empConfig.html,...i})}toConfig(){for(let[t,e]of Object.entries(this.entriesConfig))this.setRspackHtmlPlugin(e.html,t),this.setRspackEntry(e.entry)}},Pt=new V});var J,Rt,Lt=l(()=>{"use strict";J=class{store;async setup(t){this.store=t;let e=[this.sass(),this.less(),this.css()];await Promise.all(e)}async sass(){let t={loader:this.store.importResolve("sass-loader"),options:{}};this.store.chain.merge({module:{rule:{sass:{test:/\.(sass|scss)$/,use:{postcss:this.postcss,sassLoader:t},type:"css/auto"}}}})}async less(){let t={loader:this.store.importResolve("less-loader"),options:{lessOptions:{javascriptEnabled:!0}}};this.store.chain.merge({module:{rule:{less:{test:/\.less$/,use:{postcss:this.postcss,lessLoader:t},type:"css/auto"}}}})}async css(){this.store.chain.merge({module:{rule:{css:{test:/\.css$/,use:{postcss:this.postcss},type:"css/auto"}}}})}get postcss(){return{loader:this.store.importResolve("postcss-loader"),options:{postcssOptions:{plugins:this.store.empConfig.css.postcss}}}}},Rt=new J});var W,jt,Tt=l(()=>{"use strict";vt();wt();St();kt();Lt();W=class{store;async setup(t){this.store=t;let e=[xt.setup(this.store),Ct.setup(this.store),bt.setup(this.store),Pt.setup(this.store),Rt.setup(this.store)];await Promise.all(e),await this.store.empConfig.plugins(),await this.store.empConfig.chain()}},jt=new W});import f from"chalk";import{table as ge}from"table";var X,a,b=l(()=>{"use strict";X=class{pname="";logLevel="debug";setup({pname:t,logLevel:e}){this.pname=t,e&&(this.logLevel=e)}debug=(...t)=>["debug"].includes(this.logLevel)&&console.log(...t);info=(...t)=>["debug","info"].includes(this.logLevel)&&console.log(...t);warn=(...t)=>["debug","info","warn"].includes(this.logLevel)&&console.warn(...t);error=(...t)=>["debug","info","warn","error"].includes(this.logLevel)&&console.error(...t);blue=t=>{console.log(`${f.white.bgBlue(this.pname)}${f.blue.bgWhite(` ${t} `)}
2
2
  `)};cyan=t=>{console.log(`${f.white.bgCyan(this.pname)}${f.cyan.bgWhite(` ${t} `)}
3
3
  `)};magenta=t=>{console.log(`${f.white.bgMagenta(this.pname)}${f.magenta.bgWhite(` ${t} `)}
4
4
  `)};green=t=>{console.log(`${f.white.bgGreen(this.pname)}${f.green.bgWhite(` ${t} `)}
@@ -1,7 +0,0 @@
1
- import { HttpServer } from './httpBase';
2
- declare class ServeScript extends HttpServer {
3
- run(): Promise<void>;
4
- middleware(): Promise<void>;
5
- }
6
- declare const _default: ServeScript;
7
- export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@empjs/cli",
3
- "version": "3.0.0-beta.27",
3
+ "version": "3.0.0-beta.28",
4
4
  "description": "emp",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -81,9 +81,9 @@
81
81
  "tsc-alias": "^1.8.8"
82
82
  },
83
83
  "dependencies": {
84
- "@rspack/core": "0.5.8",
85
- "@rspack/dev-server": "0.5.8",
86
- "@rspack/plugin-react-refresh": "0.5.8",
84
+ "@rspack/core": "0.5.9",
85
+ "@rspack/dev-server": "0.5.9",
86
+ "@rspack/plugin-react-refresh": "0.5.9",
87
87
  "@svgr/webpack": "^8.1.0",
88
88
  "@types/node": "^20.8.7",
89
89
  "@types/react": "^18.2.30",
@@ -109,8 +109,6 @@
109
109
  "table": "^6.8.1",
110
110
  "typescript-plugin-css-modules": "^5.0.2",
111
111
  "webpack-bundle-analyzer": "^4.9.1",
112
- "webpack-chain": "^6.5.1",
113
- "webpack-dev-middleware": "^7.0.0",
114
- "webpack-hot-middleware": "^2.26.1"
112
+ "webpack-chain": "^6.5.1"
115
113
  }
116
- }
114
+ }