@moneko/core 3.35.1 → 3.35.3
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/lib/commom/is-ci-environment.mjs +1 -1
- package/lib/config.mjs +1 -1
- package/lib/dev.mjs +1 -1
- package/lib/process-env.d.mts +1 -1
- package/package.json +3 -3
- package/typings/global.d.ts +18 -11
package/lib/build.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{relative as o}from"node:path";import{analyzeBundleSize as r,completedInfo as m,ink as t,println as e,progressBar as i}from"@moneko/utils";import s from"webpack";import{merge as n}from"webpack-merge";import a from"./build/common.mjs";import p from"./commom/paths.mjs";import l from"./plugin/done.mjs";import{empty as u}from"./utils/index.mjs";import c from"./utils/seo.mjs";import{CONFIG as g}from"./config.mjs";import f from"./module.config.mjs";let d=n(a,{module:f(!1),plugins:[]});if(g.done&&d.plugins.push(new l({done:g.done})),g.bar){let o=g.bar,r=o.name||"Build";d.plugins.push(new s.ProgressPlugin({handler(m,t,...e){let s=e.length?`[${t}] ${e.join(" ")}`:"";o.quiet?process.stdout.write(`${s}
|
|
1
|
+
import{relative as o}from"node:path";import{analyzeBundleSize as r,completedInfo as m,ink as t,println as e,progressBar as i}from"@moneko/utils";import s from"webpack";import{merge as n}from"webpack-merge";import a from"./build/common.mjs";import p from"./commom/paths.mjs";import l from"./plugin/done.mjs";import{empty as u}from"./utils/index.mjs";import c from"./utils/seo.mjs";import{CONFIG as g}from"./config.mjs";import f from"./module.config.mjs";let d=n(a,{module:f(!1),plugins:[]});if(g.done&&d.plugins.push(new l({done:g.done})),g.bar){let o=g.bar,r=o.name||"Build";d.plugins.push(new s.ProgressPlugin({handler(m,t,...e){let s=e.length?`[${t}] ${e.join(" ")}`:" ";o.quiet?process.stdout.write(`${s}
|
|
2
2
|
`):(i(m||0,1,{msg:s,name:r,barColor:o.barColor,nameColor:o.nameColor,barBgColor:o.barBgColor,msgColor:o.msgColor}),1===m&&process.stdout.write("\r\x1b[2K"))}}))}let h=s(d);async function w(){let i=await new Promise((o,r)=>{h.run((m,t)=>{m&&r(m),t?o(t):r(Error("编译过程中没有生成统计信息"))})});(i.hasErrors()||i.hasWarnings())&&function(o){let{warnings:r,errors:m}=o.compilation;r.forEach(o=>{e(t(o.message,"178"))}),m.forEach(o=>{e(t(o.message,"red"))})}(i),await new Promise(s=>{i.compilation.compiler.cache.shutdown(n=>{n&&e(t(n.toString(),"red")),r(i.compilation.outputOptions.path,["\\.js$"]),m(~~((i.endTime-i.startTime)/10)/100,o(p.programPath,i.compilation.outputOptions.path)),s()})}),g.seo&&c()}process.on("exit",u),await w();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function(){if("true"===process.env.CI||"1"===process.env.CI)return!0;let I=["CI","CONTINUOUS_INTEGRATION","BUILD_NUMBER","RUN_ID","GITHUB_ACTIONS","GITLAB_CI","TRAVIS","CIRCLECI","JENKINS_URL","TF_BUILD","APPVEYOR","BITBUCKET_BUILD_NUMBER","CODEBUILD_BUILD_ID","TEAMCITY_VERSION","BAMBOO_BUILDKEY","BUILDKITE","DRONE","SEMAPHORE","NETLIFY","VERCEL","NOW_BUILDER","HEROKU_TEST_RUN_ID","CODEBUILD_BUILD_ID","HUDSON_URL","TASK_ID","GO_PIPELINE_NAME","CI_NAME","CI_WORKER_ID"].some(I=>void 0!==process.env[I]&&""!==process.env[I]),e="true"===process.env.NETLIFY||"true"===process.env.VERCEL||"production"===process.env.NODE_ENV&&!!process.env.HEROKU_APP_ID||"codeship"===process.env.CI_NAME||"true"===process.env.BUDDY||"true"===process.env.SCRUTINIZER||void 0!==process.env.CF_BUILD_ID;return I||e}
|
|
1
|
+
export default function(){if(process.env.DOCKER_BUILD_ID||process.env.DOCKER_APP_NAME||"true"===process.env.CI||"1"===process.env.CI)return!0;let I=["CI","CONTINUOUS_INTEGRATION","BUILD_NUMBER","RUN_ID","GITHUB_ACTIONS","GITLAB_CI","TRAVIS","CIRCLECI","JENKINS_URL","TF_BUILD","APPVEYOR","BITBUCKET_BUILD_NUMBER","CODEBUILD_BUILD_ID","TEAMCITY_VERSION","BAMBOO_BUILDKEY","BUILDKITE","DRONE","SEMAPHORE","NETLIFY","VERCEL","NOW_BUILDER","HEROKU_TEST_RUN_ID","CODEBUILD_BUILD_ID","HUDSON_URL","TASK_ID","GO_PIPELINE_NAME","CI_NAME","CI_WORKER_ID"].some(I=>void 0!==process.env[I]&&""!==process.env[I]),e="true"===process.env.NETLIFY||"true"===process.env.VERCEL||"production"===process.env.NODE_ENV&&!!process.env.HEROKU_APP_ID||"codeship"===process.env.CI_NAME||"true"===process.env.BUDDY||"true"===process.env.SCRUTINIZER||void 0!==process.env.CF_BUILD_ID;return I||e}
|
package/lib/config.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{relative as e}from"node:path";import{fileExists as o}from"@moneko/utils";import{merge as t}from"webpack-merge";import r from"./commom/paths.mjs";import s from"./commom/require.mjs";import n from"./commom/setup-env.mjs";import i from"./options/jsx-dom-expressions.mjs";import a from"./options/split-chunk.mjs";import{isFunction as
|
|
1
|
+
import{relative as e}from"node:path";import{fileExists as o}from"@moneko/utils";import{merge as t}from"webpack-merge";import r from"./commom/paths.mjs";import s from"./commom/require.mjs";import n from"./commom/setup-env.mjs";import i from"./options/jsx-dom-expressions.mjs";import a from"./options/split-chunk.mjs";import{isFunction as m,node_modules as l,resolveProgram as p}from"./utils/index.mjs";import{APPTYPE as c,FRAMEWORK as u,frameworkVersion as d,isCI as f,isDev as h,isLibrary as g,isMobile as x,isReact as j,jsxImportSource as v,mainDirectory as P,NODE_ENV as C,PACKAGENAME as b}from"./process-env.mjs";let k=["@app","@moneko","neko-ui",".cache/http/data","@element-plus","ant-design-vue","element-plus","element-ui","ng-zorro-antd","@mui","@du","@fontsource","@fortawesome","font-pingfang-sc","font-pingfang-tc","katex","react-markdown-editor-lite","react-photo-view","schema-design","monaco-editor"];export function getConfig(e){return delete s.cache[e],new Promise(t=>{if(o(e)){let o=s(e).default;return t(m(o)?o(process):o)}return t({})})}let w=await Promise.all([n(C,c,u,[]),getConfig(r.configPath),getConfig(r.customConfigPath)]),y=w[0],O=w[1],M=w[2],I={strict:!1,devtool:h?"eval-cheap-module-source-map":"cheap-module-source-map",seo:!1,mode:"csr",bundleAnalyzer:!1,polyfill:!1,entry:{},minifier:{},sourceMap:{filename:"[file].map",publicPath:""},env:y,basename:"/",publicPath:"/",rem:{designSize:x?375:1920},fallbackCompPath:null,modifyVars:{},prefixCls:"n",alias:Object.assign({"@":p(P)},j&&d<18?{"react/package.json":l("react/package.json"),"react/jsx-runtime":l("react/jsx-runtime.js"),"react/jsx-dev-runtime":l("react/jsx-dev-runtime.js")}:{}),moduleRules:[],prefixJsLoader:[],cssModules:[],cssModuleDefinition:!0,importOnDemand:{"@moneko/common":{transform:"esm/${member}"},lodash:{transform:"${member}"}},proxy:{},devServer:{host:"localhost",port:3e3},htmlPluginOption:{title:b.toLocaleUpperCase(),favicon:e(r.programPath,`${r.corePath}/options/favicon.ico`)},copy:{},routerMode:"browser",fixBrowserRouter:!1,plugins:[],resolvePlugins:[],overrideResolve:!1,splitChunk:a,runtimeChunk:"single",moduleFederation:[],rulesInclude:{css:k,js:k,media:k,font:k,wasm:[]},mdx:{jsx:!1,development:h,jsxImportSource:v,providerImportSource:`@moneko/${u}/mdx`},jsxDomExpressions:i,bar:{name:"Client",nameColor:"68",msgColor:"242",barBgColor:"15",barColor:"69",quiet:f},normalizeCss:!0,externalsPresets:{},buildHttp:void 0,virtualModule:{},cssExtract:{},externals:["@swc/core"],lazyCompilation:!1,performance:!1,refresh:"solid"!==u,bundleId:"com.moneko.bid",bundles:[],stylelint:{},eslint:{lintDirtyModulesOnly:!1}};g&&(I.alias=Object.assign(I.alias,{"@pkg":r.componentsPath,[b]:r.componentsPath}));let z=I;(!1===(z=t(z,O,M)).devtool||!1===z.sourceMap)&&(z.sourceMap=!1,z.devtool=!1),z.fixBrowserRouter&&z.htmlPluginOption&&(z.htmlPluginOption.tags||(z.htmlPluginOption.tags=[]),z.htmlPluginOption.tags.push({textContent:"(function(l) {if (l.search[1] === '/' ) {var decoded = l.search.slice(1).split('&').map(function(s) {return s.replace(/~and~/g, '&')}).join('?');window.history.replaceState(null, null,l.pathname.slice(0, -1) + decoded + l.hash);}}(window.location))"}));export const CONFIG=z;export const PUBLICPATH=CONFIG.publicPath;
|
package/lib/dev.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{exec as e,spawn as t}from"node:child_process";import{watchFile as o}from"node:fs";import{extname as r,relative as s,sep as i}from"node:path";import{ink as n,loadFile as l,print as a,println as m,progressBar as p}from"@moneko/utils";import c from"fastify";import d from"webpack";import u from"webpack-hot-middleware";import{merge as h}from"webpack-merge";import{diffObject as f}from"./commom/diff-object.mjs";import g from"./commom/mime.mjs";import y,{config_files as w}from"./commom/paths.mjs";import $ from"./commom/sigint-exit.mjs";import{devLog as x,PORT as v}from"./dev/config.mjs";import C from"./dev/mock.mjs";import{setupProxy as j}from"./dev/proxy.mjs";import P from"./options/reslove.mjs";import S from"./plugin/eslint.mjs";import k from"./plugin/stylelint.mjs";import{empty as b}from"./utils/index.mjs";import{commonConfig as A}from"./common.mjs";import{CONFIG as T,getConfig as H,PUBLICPATH as O}from"./config.mjs";import{outputFileSystem as E}from"./file-system.mjs";import I from"./module.config.mjs";import{isLibrary as R,isReact as _,refresh as U}from"./process-env.mjs";let q=`${O.endsWith("/")?"":"/"}__hmr__`,z=new URLSearchParams({name:"client",path:q,dynamicPublicPath:!0,timeout:2e3,reload:!U,quiet:!0,noInfo:!0,overlay:!1,autoConnect:!0}).toString(),F=h(A,{watchOptions:{ignored:/node_modules\/(?!(@app|@moneko)).+/},entry:{main:[`${P.hotMiddlewareClient}?${z}`]},module:I(!1),plugins:[new d.HotModuleReplacementPlugin,new d.WatchIgnorePlugin({paths:[/node_modules\/(?!(@app|@moneko)).+/,/\.d\.ts$/]})]});if(F.plugins||(F.plugins=[]),_){let e=(await import("@pmmmwh/react-refresh-webpack-plugin")).default;F.plugins.push(new e({overlay:!1}))}function M(e){let t=e.join(","),o=[s(y.programPath,`${T.alias["@"]}/**/*.{${t}}`).replace(/\\/g,"/")];return R&&o.push(s(y.programPath,`${T.alias["@pkg"]}/**/*.{${t}}`).replace(/\\/g,"/")),o}if(T.eslint&&F.plugins.push(new S({fix:!0,cache:!0,cacheLocation:`${y.lintCachePath}/.eslintcache`,cacheStrategy:"metadata",files:M(["js","jsx","ts","tsx","json","html","vue"]),...T.eslint})),T.stylelint&&F.plugins.push(new k({fix:!0,cache:!0,cacheLocation:`${y.lintCachePath}/.stylelintcache`,files:M(["css","scss","sass","less","ts","tsx","js","jsx"]),...T.stylelint})),T.bar){let e=T.bar,t=e.name||"Build";F.plugins.push(new d.ProgressPlugin({handler(o,r,...s){let i=s.length?`[${r}] ${s.join(" ")}`:"";e.quiet?process.stdout.write(`${i}
|
|
1
|
+
import{exec as e,spawn as t}from"node:child_process";import{watchFile as o}from"node:fs";import{extname as r,relative as s,sep as i}from"node:path";import{ink as n,loadFile as l,print as a,println as m,progressBar as p}from"@moneko/utils";import c from"fastify";import d from"webpack";import u from"webpack-hot-middleware";import{merge as h}from"webpack-merge";import{diffObject as f}from"./commom/diff-object.mjs";import g from"./commom/mime.mjs";import y,{config_files as w}from"./commom/paths.mjs";import $ from"./commom/sigint-exit.mjs";import{devLog as x,PORT as v}from"./dev/config.mjs";import C from"./dev/mock.mjs";import{setupProxy as j}from"./dev/proxy.mjs";import P from"./options/reslove.mjs";import S from"./plugin/eslint.mjs";import k from"./plugin/stylelint.mjs";import{empty as b}from"./utils/index.mjs";import{commonConfig as A}from"./common.mjs";import{CONFIG as T,getConfig as H,PUBLICPATH as O}from"./config.mjs";import{outputFileSystem as E}from"./file-system.mjs";import I from"./module.config.mjs";import{isLibrary as R,isReact as _,refresh as U}from"./process-env.mjs";let q=`${O.endsWith("/")?"":"/"}__hmr__`,z=new URLSearchParams({name:"client",path:q,dynamicPublicPath:!0,timeout:2e3,reload:!U,quiet:!0,noInfo:!0,overlay:!1,autoConnect:!0}).toString(),F=h(A,{watchOptions:{ignored:/node_modules\/(?!(@app|@moneko)).+/},entry:{main:[`${P.hotMiddlewareClient}?${z}`]},module:I(!1),plugins:[new d.HotModuleReplacementPlugin,new d.WatchIgnorePlugin({paths:[/node_modules\/(?!(@app|@moneko)).+/,/\.d\.ts$/]})]});if(F.plugins||(F.plugins=[]),_){let e=(await import("@pmmmwh/react-refresh-webpack-plugin")).default;F.plugins.push(new e({overlay:!1}))}function M(e){let t=e.join(","),o=[s(y.programPath,`${T.alias["@"]}/**/*.{${t}}`).replace(/\\/g,"/")];return R&&o.push(s(y.programPath,`${T.alias["@pkg"]}/**/*.{${t}}`).replace(/\\/g,"/")),o}if(T.eslint&&F.plugins.push(new S({fix:!0,cache:!0,cacheLocation:`${y.lintCachePath}/.eslintcache`,cacheStrategy:"metadata",files:M(["js","jsx","ts","tsx","json","html","vue"]),...T.eslint})),T.stylelint&&F.plugins.push(new k({fix:!0,cache:!0,cacheLocation:`${y.lintCachePath}/.stylelintcache`,files:M(["css","scss","sass","less","ts","tsx","js","jsx"]),...T.stylelint})),T.bar){let e=T.bar,t=e.name||"Build";F.plugins.push(new d.ProgressPlugin({handler(o,r,...s){let i=s.length?`[${r}] ${s.join(" ")}`:" ";e.quiet?process.stdout.write(`${i}
|
|
2
2
|
`):(p(o||0,1,{msg:i,name:t,barColor:e.barColor,nameColor:e.nameColor,barBgColor:e.barBgColor,msgColor:e.msgColor}),1===o&&process.stdout.write("\r\x1b[2K"))}}))}let B=d(F);B.outputFileSystem=E;let L=B.watch(B.options.watchOptions,x);B.hooks.done.tap("client-log",e=>{x(null,e)});let N={};if(T.devServer.https){let[e,t]=await Promise.all([l(T.devServer.https.key),l(T.devServer.https.cert)]);e||(m(n(`法加载私钥。请检查路径和文件是否存在,并确保路径正确:${T.devServer.https.key}`,"red")),process.exit(1)),t||(m(n(`无法加载证书。请检查路径和文件是否存在,并确保路径正确:${T.devServer.https.cert}`,"red")),process.exit(1)),N.http2=!0,N.https={key:e,cert:t}}let G=u(B,{log:!1,path:q,heartbeat:2e3}),W=c({logger:!1,...N});C(W,{directory:y.mockPath}),j(W,T.proxy);let D={"Access-Control-Allow-Credentials":"true","Access-Control-Allow-Headers":"DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization","Access-Control-Allow-Methods":"GET, POST, OPTIONS, DELETE, PATCH, PUT","Access-Control-Allow-Origin":"*","Cache-Control":"no-store, no-cache, must-revalidate, proxy-revalidate",Pragma:"no-cache",Expires:"0",...T.devServer.headers||{}};function K(e,t,o){t.headers(D),e.headers.origin&&t.header("Access-Control-Allow-Origin",e.headers.origin);let s=B.outputFileSystem,i=e.headers["accept-encoding"],n=i?.includes("gzip"),l=s.existsSync?.(`${o}.gz`);n&&l&&t.header("content-encoding","gzip");let a=s.createReadStream?.(n&&l?`${o}.gz`:o,{autoClose:!0});a?.on("error",e=>{if(a.destroy(),!t.sent)return t.code(404).type("text/html").send(`File not found: ${e.message}`)});let m=g[r(o)];return m&&t.header("content-type",m),t.send(a)}function X(){process.exit(0)}W.get(`/${q}`.replace("//","/"),async(e,t)=>{if("text/event-stream"===e.headers.accept){e.raw.url=q,G(e.raw,t.raw,()=>{t.raw.writableEnded&&(t.sent=!0)});return}}),W.addHook("onRequest",(e,t,o)=>{let r=decodeURIComponent(`${B.options.output.path}${i}${"/"===e.url?"index.html":e.url}`);return B.outputFileSystem?.existsSync?.(r)?K(e,t,r):o()}),W.setNotFoundHandler((e,t)=>K(e,t,`${B.options.output.path}${i}index.html`)),W.addHook("onClose",()=>{L.close(b),W.server.close(b)}),W.listen({port:v});let J=await Promise.all(w.map(H)),Q=h(J[0]||{},J[1]||{});w.forEach(function(t){o(t,async function(){let[o,r]=await Promise.all(w.map(H)),s=h(o||{},r||{}),i=f(Q,s);1===Object.keys(i).length&&"proxy"in i?(a(n(`代理更新中...`,"yellow"),!0),await j(W,s.proxy),a(n(`代理更新完成...`,"green"),!0),T.proxy=s.proxy,Q.proxy=s.proxy,Q=s):(Q=s,m(n(`检测到工程配置${n(`[${t}]`,"blue")}变更, 程序即将重启...`,"yellow"),!0),e(V?`netstat -ano | findstr :${v}`:`lsof -i :${v} -t`,(e,t)=>{if(e){m(n(`查找端口 ${v} 时发生错误: ${e.message}`,"red")),m(n("请尝试手动重启程序","yellow"));return}let o=t.trim().replace(/\r\n/g,"\n").split("\n").filter(Boolean),r=V?o[0]?.split(/\s+/).pop()?.trim():o[0]?.trim();if(!r){m(n(`未找到占用端口 ${v} 的进程, 请尝试手动重启程序`,"yellow"));return}try{process.kill(Number(r),"SIGHUP")}catch(e){m(n(`终止进程 ${r} 时发生错误: ${e.message}`,"red"))}}))})});let V="win32"===process.platform;process.on("SIGHUP",function(){W.close(b),function(){let e=t(process.argv[0],process.argv.slice(1),{detached:!1,stdio:"inherit"});e.unref(),e.on("close",X)}()}),process.on("exit",function(){W.close(b)}),$(X);
|
package/lib/process-env.d.mts
CHANGED
|
@@ -18,7 +18,7 @@ export declare const jsxImportSource: string;
|
|
|
18
18
|
export declare const framework: 'react' | 'solid-js';
|
|
19
19
|
export declare const frameworkVersionStr: string;
|
|
20
20
|
export declare const frameworkVersion: number;
|
|
21
|
-
export declare const packageJson:
|
|
21
|
+
export declare const packageJson: typeof import('package.json');
|
|
22
22
|
export declare const PACKAGENAME: string;
|
|
23
23
|
export declare const coreName: string;
|
|
24
24
|
export declare const isDev: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moneko/core",
|
|
3
|
-
"version": "3.35.
|
|
3
|
+
"version": "3.35.3",
|
|
4
4
|
"description": "core",
|
|
5
5
|
"main": "lib/index.mjs",
|
|
6
6
|
"type": "module",
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"@types/stylis": "4.2.7",
|
|
52
52
|
"@types/webpack-bundle-analyzer": "4.7.0",
|
|
53
53
|
"@types/webpack-hot-middleware": "2.25.9",
|
|
54
|
-
"babel-plugin-react-compiler": "19.0.0-beta-
|
|
55
|
-
"sass": "1.86.
|
|
54
|
+
"babel-plugin-react-compiler": "19.0.0-beta-e993439-20250328",
|
|
55
|
+
"sass": "1.86.1",
|
|
56
56
|
"sass-loader": "16.0.5",
|
|
57
57
|
"solid-refresh": "0.7.5",
|
|
58
58
|
"stylis": "4.3.6",
|
package/typings/global.d.ts
CHANGED
|
@@ -79,6 +79,21 @@ export interface Theme {
|
|
|
79
79
|
interface CacheConfig extends FileCacheOptions, MemoryCacheOptions {
|
|
80
80
|
type?: 'filesystem' | 'memory';
|
|
81
81
|
}
|
|
82
|
+
/** 进度条配置 */
|
|
83
|
+
interface BarOption {
|
|
84
|
+
/** 进度条名称 */
|
|
85
|
+
name?: string;
|
|
86
|
+
/** 进度条颜色 */
|
|
87
|
+
barColor?: string;
|
|
88
|
+
/** 进度条名称颜色 */
|
|
89
|
+
nameColor?: string;
|
|
90
|
+
/** 进度条背景颜色 */
|
|
91
|
+
barBgColor?: string;
|
|
92
|
+
/** 进度消息颜色 */
|
|
93
|
+
msgColor?: string;
|
|
94
|
+
/** 不展示进度条图形, 直接输出信息; 在 CI 中时默认为 `true`;*/
|
|
95
|
+
quiet?: boolean;
|
|
96
|
+
}
|
|
82
97
|
export declare type ConfigType = {
|
|
83
98
|
/** 启用严格模式 */
|
|
84
99
|
strict?: boolean;
|
|
@@ -425,16 +440,8 @@ export declare type ConfigType = {
|
|
|
425
440
|
* @description 用于配置 SolidJS JSX 语法中 DOM 表达式的处理方式
|
|
426
441
|
*/
|
|
427
442
|
jsxDomExpressions?: JsxDomExpressions;
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
name?: string;
|
|
431
|
-
barColor?: string;
|
|
432
|
-
nameColor?: string;
|
|
433
|
-
barBgColor?: string;
|
|
434
|
-
msgColor?: string;
|
|
435
|
-
quiet?: boolean;
|
|
436
|
-
}
|
|
437
|
-
| false;
|
|
443
|
+
/** 进度条配置 */
|
|
444
|
+
bar?: BarOption | false;
|
|
438
445
|
/** 虚拟模块
|
|
439
446
|
* @example
|
|
440
447
|
* const conf = {
|
|
@@ -475,7 +482,7 @@ export declare type ConfigType = {
|
|
|
475
482
|
performance?: Configuration['performance'];
|
|
476
483
|
/**
|
|
477
484
|
* 启用 React Compiler
|
|
478
|
-
* @description 需要 react
|
|
485
|
+
* @description 需要 react 17+
|
|
479
486
|
* @default false
|
|
480
487
|
*/
|
|
481
488
|
reactCompiler?: false | ReactCompilerOption;
|