@moneko/core 2.0.53-beta.5 → 2.0.53-beta.7

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 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return _}});var e,s,r,o,t,l,a,n,i,u,c,d,p=N(require("mini-css-extract-plugin")),m=N(require("mini-svg-data-uri")),f=require("./common"),y=require("./has-pkg"),v=N(require("./modifyVars")),g=require("./process-env"),h=N(require("./swcrc")),b=N(require("./tsloader.config")),x=require("./utils");function O(e,s){(null==s||s>e.length)&&(s=e.length);for(var r=0,o=Array(s);r<s;r++)o[r]=e[r];return o}function I(){return(I=Object.assign||function(e){for(var s=1;s<arguments.length;s++){var r=arguments[s];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e}).apply(this,arguments)}function N(e){return e&&e.__esModule?e:{default:e}}function P(e){return function(e){if(Array.isArray(e))return O(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,s){if(e){if("string"==typeof e)return O(e,s);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return O(e,s)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var j="single-spa"===g.APPTYPE?f.PUBLICPATH:"../",$={loader:p.default.loader,options:{publicPath:"/"!==j?j:"../"}},C=(0,y.hasPkg)("@moneko/postcss"),q=C?require("@moneko/postcss"):{},M=C&&{loader:"postcss-loader",options:{postcssOptions:q}},F=C&&{loader:"postcss-loader",options:{postcssOptions:I({},q,{parser:"postcss-js"}),execute:!0}};g.DEV&&($="style-loader");var G=P(f.CONFIG.cssModules).concat([g.pkgName,"neko-ui"]).map(x.resolveNodeModulesPath),A=[(0,x.resolveNodeModulesPath)(""+g.pkgName+"/lib/styles/eval/*.less")].concat(P(["src/styles/variables/*.less","src/styles/mixins/*.less","site/styles/variables/*.less","site/styles/mixins/*.less"].map(x.resolveProgramPath))),k=["components","example","mock","site","src"].map(x.resolveProgramPath),w=[$,{loader:"css-loader",options:{modules:{auto:function(e){for(var s=0,r=G.length;s<r;s++)if(e&&(null==e?void 0:e.includes(G[s])))return RegExp("(.*(?<!\\.global\\.(le|c)ss)$)","i").test(e);return RegExp("(^(?!.*node_modules))(.*(?<!\\.global\\.(le|c)ss)$)","i").test(e)},localIdentName:"[path][name]__[local]",exportLocalsConvention:"dashesOnly"},importLoaders:2}},M,"css-unicode-loader",{loader:"less-loader",options:{sourceMap:!!f.CONFIG.sourceMap,lessOptions:{modifyVars:v.default,javascriptEnabled:!0}}},{loader:"style-resources-loader",options:{patterns:A}}].filter(Boolean),E={loader:"tsc"===f.CONFIG.compiler?"ts-loader":"swc-loader",options:"tsc"===f.CONFIG.compiler?b.default:(0,h.default)(g.DEV)},_={rules:[{oneOf:[{resourceQuery:/raw/,type:"asset/source"},{resourceQuery:/\.wasm$/,type:"webassembly/async"},{test:/\.less$/,use:w,include:k.concat((null==(e=f.CONFIG.rulesInclude)?void 0:null==(s=e.less)?void 0:s.map(x.resolveNodeModulesPath))||[])},{test:/\.css$/,use:[$,"css-loader",M,"css-unicode-loader"].filter(Boolean),include:k.concat((null==(r=f.CONFIG.rulesInclude)?void 0:null==(o=r.css)?void 0:o.map(x.resolveNodeModulesPath))||[])},{test:/\.(gif|png|jpe?g|ico|mp4)$/i,type:"asset",generator:{filename:"assets/images/[name][ext][query]"},include:k.concat((null==(t=f.CONFIG.rulesInclude)?void 0:null==(l=t.media)?void 0:l.map(x.resolveNodeModulesPath))||[])},{test:/\.(eot|ttf|otf|woff(|2))$/,type:"asset",generator:{filename:"assets/fonts/[name][ext][query]"},include:k.concat((null==(a=f.CONFIG.rulesInclude)?void 0:null==(n=a.fonts)?void 0:n.map(x.resolveNodeModulesPath))||[])},{test:/\.svg$/,type:"asset/inline",generator:{dataUrl:function(e){return(0,m.default)("string"!=typeof e?e.toString():e)}}},{test:/\.txt$/,type:"asset/source"},{test:/\.style.(j|t)s$/,use:[E,$,"css-loader",F,"css-unicode-loader"].filter(Boolean),include:k.concat((null==(i=f.CONFIG.rulesInclude)?void 0:null==(u=i.js)?void 0:u.map(x.resolveNodeModulesPath))||[])},{test:/\.(cj|mj|t|j)s(|x)$/,use:P(f.CONFIG.prefixJsLoader).concat([E]).filter(Boolean),include:k.concat((null==(c=f.CONFIG.rulesInclude)?void 0:null==(d=c.js)?void 0:d.map(x.resolveNodeModulesPath))||[])},{test:/\.mdx?$/,use:P(f.CONFIG.prefixJsLoader).concat([E,{loader:"@mdx-js/loader",options:{rehypePlugins:[[require("@mapbox/rehype-prism"),{ignore:!0}],require("rehype-accessible-emojis").rehypeAccessibleEmojis,require("rehype-figure")],remarkPlugins:[]}}]).filter(Boolean),include:k,exclude:[/(.+)\/examples\/(.+).mdx?$/i]},{test:/\.mdx?$/,type:"asset/source",include:[/(.+)\/examples\/(.+).mdx?$/i]},{type:"asset/source",include:[/(.+)\/examples\/(.+).*?$/i]}]}].concat(P(f.CONFIG.moduleRules))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return _}});var e,s,r,o,t,l,a,n,i,u,c,d,p=N(require("mini-css-extract-plugin")),m=N(require("mini-svg-data-uri")),f=require("./common"),y=require("./has-pkg"),v=N(require("./modifyVars")),g=require("./process-env"),h=N(require("./swcrc")),x=N(require("./tsloader.config")),b=require("./utils");function O(e,s){(null==s||s>e.length)&&(s=e.length);for(var r=0,o=Array(s);r<s;r++)o[r]=e[r];return o}function I(){return(I=Object.assign||function(e){for(var s=1;s<arguments.length;s++){var r=arguments[s];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e}).apply(this,arguments)}function N(e){return e&&e.__esModule?e:{default:e}}function P(e){return function(e){if(Array.isArray(e))return O(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,s){if(e){if("string"==typeof e)return O(e,s);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return O(e,s)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var j="single-spa"===g.APPTYPE?f.PUBLICPATH:"../",$={loader:p.default.loader,options:{publicPath:"/"!==j?j:"../"}},C=(0,y.hasPkg)("@moneko/postcss"),q=C?require("@moneko/postcss"):{},M=C&&{loader:"postcss-loader",options:{postcssOptions:q}},F=C&&{loader:"postcss-loader",options:{postcssOptions:I({},q,{parser:"postcss-jsx"}),execute:!0}};g.DEV&&($="style-loader");var G=P(f.CONFIG.cssModules).concat([g.pkgName,"neko-ui"]).map(b.resolveNodeModulesPath),A=[(0,b.resolveNodeModulesPath)(""+g.pkgName+"/lib/styles/eval/*.less")].concat(P(["src/styles/variables/*.less","src/styles/mixins/*.less","site/styles/variables/*.less","site/styles/mixins/*.less"].map(b.resolveProgramPath))),k=["components","example","mock","site","src"].map(b.resolveProgramPath),w=[$,{loader:"css-loader",options:{modules:{auto:function(e){for(var s=0,r=G.length;s<r;s++)if(e&&(null==e?void 0:e.includes(G[s])))return RegExp("(.*(?<!\\.global\\.(le|c)ss)$)","i").test(e);return RegExp("(^(?!.*node_modules))(.*(?<!\\.global\\.(le|c)ss)$)","i").test(e)},localIdentName:"[path][name]__[local]",exportLocalsConvention:"dashesOnly"},importLoaders:2}},M,"css-unicode-loader",{loader:"less-loader",options:{sourceMap:!!f.CONFIG.sourceMap,lessOptions:{modifyVars:v.default,javascriptEnabled:!0}}},{loader:"style-resources-loader",options:{patterns:A}}].filter(Boolean),E={loader:"tsc"===f.CONFIG.compiler?"ts-loader":"swc-loader",options:"tsc"===f.CONFIG.compiler?x.default:(0,h.default)(g.DEV)},_={rules:[{oneOf:[{resourceQuery:/raw/,type:"asset/source"},{resourceQuery:/\.wasm$/,type:"webassembly/async"},{test:/\.less$/,use:w,include:k.concat((null==(e=f.CONFIG.rulesInclude)?void 0:null==(s=e.less)?void 0:s.map(b.resolveNodeModulesPath))||[])},{test:/\.css$/,use:[$,"css-loader",M,"css-unicode-loader"].filter(Boolean),include:k.concat((null==(r=f.CONFIG.rulesInclude)?void 0:null==(o=r.css)?void 0:o.map(b.resolveNodeModulesPath))||[])},{test:/\.(gif|png|jpe?g|ico|mp4)$/i,type:"asset",generator:{filename:"assets/images/[name][ext][query]"},include:k.concat((null==(t=f.CONFIG.rulesInclude)?void 0:null==(l=t.media)?void 0:l.map(b.resolveNodeModulesPath))||[])},{test:/\.(eot|ttf|otf|woff(|2))$/,type:"asset",generator:{filename:"assets/fonts/[name][ext][query]"},include:k.concat((null==(a=f.CONFIG.rulesInclude)?void 0:null==(n=a.fonts)?void 0:n.map(b.resolveNodeModulesPath))||[])},{test:/\.svg$/,type:"asset/inline",generator:{dataUrl:function(e){return(0,m.default)("string"!=typeof e?e.toString():e)}}},{test:/\.txt$/,type:"asset/source"},{test:/style\.(j|t)s$/,use:[$,"css-loader",F,"css-unicode-loader"].filter(Boolean),include:k.concat((null==(i=f.CONFIG.rulesInclude)?void 0:null==(u=i.js)?void 0:u.map(b.resolveNodeModulesPath))||[])},{test:/\.(cj|mj|t|j)s(|x)$/,use:P(f.CONFIG.prefixJsLoader).concat([E]).filter(Boolean),include:k.concat((null==(c=f.CONFIG.rulesInclude)?void 0:null==(d=c.js)?void 0:d.map(b.resolveNodeModulesPath))||[])},{test:/\.mdx?$/,use:P(f.CONFIG.prefixJsLoader).concat([E,{loader:"@mdx-js/loader",options:{rehypePlugins:[[require("@mapbox/rehype-prism"),{ignore:!0}],require("rehype-accessible-emojis").rehypeAccessibleEmojis,require("rehype-figure")],remarkPlugins:[]}}]).filter(Boolean),include:k,exclude:[/(.+)\/examples\/(.+).mdx?$/i]},{test:/\.mdx?$/,type:"asset/source",include:[/(.+)\/examples\/(.+).mdx?$/i]},{type:"asset/source",include:[/(.+)\/examples\/(.+).*?$/i]}]}].concat(P(f.CONFIG.moduleRules))};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(exports,{outputConfig:function(){return T},default:function(){return R}});var e,t,r=j(require("fs")),n=require("path"),a=j(require("add-asset-html-webpack-plugin")),s=j(require("html-webpack-plugin")),l=require("webpack"),o=j(require("webpackbar")),i=require("./common"),u=j(require("./done")),c=j(require("./envFlags")),p=j(require("./html-add-entry-attr")),d=j(require("./html-plugin-option")),m=require("./module-federation"),f=j(require("./module.config")),g=require("./process-env"),h=require("./seo"),y=require("./utils");function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function P(){return(P=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function j(e){return e&&e.__esModule?e:{default:e}}function O(e){return function(e){if(Array.isArray(e))return b(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return b(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return b(e,t)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}for(var A=[".eslintrc.js",".eslintrc.json",".eslintrc.yaml",".eslintrc.json"],v=[".stylelintrc",".stylelintrc.json",".stylelintrc.yaml",".stylelintrc.yml",".stylelintrc.js","stylelint.config.js","stylelint.config.cjs"],C=r.default.readdirSync(g.PROGRAMPATH),w=!1,G=!1,N=0,I=C.length;N<I;N++)v.includes(C[N])&&(G=!0),A.includes(C[N])&&(w=!0);w||(w=g.hasEslintConfig),G||(G=g.hasStylelintConfig);var x=G?require("stylelint-webpack-plugin"):null,F=w?require("eslint-webpack-plugin"):null,E={"@":(0,y.resolveProgramPath)("src")};Object.assign(E,i.CONFIG.alias),"library"===g.APPTYPE&&Object.assign(E,((e={"@":(0,y.resolveProgramPath)("site"),"@pkg":(0,y.resolveProgramPath)("components")})[g.PACKAGENAME]=(0,y.resolveProgramPath)("components"),e));var q=i.CONFIG.assetHtml.map(function(e){return P({publicPath:""},e)}),T={path:(0,y.resolveProgramPath)("library"===g.APPTYPE?"docs":"dist"),filename:"js/[name].bundle.js",chunkFilename:"js/[name].chunk.js",assetModuleFilename:"assets/[name].[hash][ext]",library:g.PACKAGENAME,libraryTarget:"window",globalObject:"window",chunkLoadingGlobal:"webpackJsonp_"+g.PACKAGENAME,pathinfo:!1,clean:!0,publicPath:i.PUBLICPATH},k=(0,n.join)(__dirname,"../lib/packages/"+i.ENTRYPATH[g.APPTYPE]+"/index.js");"single-component"===g.APPTYPE&&(Object.assign(E,((t={})[g.PACKAGENAME]=(0,y.resolveProgramPath)("umd"),t)),k=(0,y.resolveProgramPath)(g.DEV?"example/index.ts":"src/index.ts"),T.path=(0,y.resolveProgramPath)(g.DEV?"dist":"umd"),T.filename="index.js",T.library=g.PACKAGENAME,T.libraryTarget="umd",T.libraryExport="default");var M={main:k};i.CONFIG.entry&&("string"==typeof i.CONFIG.entry?M=i.CONFIG.entry:Object.keys(i.CONFIG.entry)&&Object.assign(M,i.CONFIG.entry)),i.CONFIG.output&&("string"==typeof i.CONFIG.output?T.path=i.CONFIG.output:Object.keys(i.CONFIG.output)&&Object.assign(T,i.CONFIG.output));var S=i.CONFIG.routeBaseName.split("/").filter(Boolean).length,K=Array(S).fill("..").join("/")+(S?"/":"")+"404.html",_=i.CONFIG.fixBrowserRouter||{},B=_.pathSegmentsToKeep,Y=void 0===B?S:B,D=_.path,R={entry:M,stats:"errors-only",infrastructureLogging:{level:"none"},target:"web",plugins:[new l.AutomaticPrefetchPlugin].concat(O(m.moduleFederation),[F&&new F({threads:!0,extensions:["js","md","mdx","cjs","ejs","mjs","jsx","ts","tsx","json","html","coffee","vue"]}),x&&new x({fix:!0,threads:!0,extensions:["css","scss","sass","less","ts","tsx","js","jsx"],exclude:["node_modules/","es/","lib/","docs/","coverage/","dist/"]}),new s.default(d.default),i.CONFIG.fixBrowserRouter&&new s.default({filename:void 0===D?K:D,inject:!1,templateContent:function(){return"<html html><head><title>"+d.default.title+"</title><script>var pathSegmentsToKeep = "+(Y||S)+";var l = window.location;l.replace(l.protocol + '//' + l.hostname + (l.port ? ':' + l.port : '') + l.pathname.split('/').slice(0, 1 + pathSegmentsToKeep).join('/') + '/?/' + l.pathname.slice(1).split('/').slice(pathSegmentsToKeep).join('/').replace(/&/g, '~and~') + (l.search ? '&' + l.search.slice(1).replace(/&/g, '~and~') : '') + l.hash);</script></head><body></body></html>"}}),new a.default(q),"single-spa"===g.APPTYPE&&new p.default(function(e){return!!(e.match(/main\.(.*)\.bundle.js$/)||e.match("main.bundle.js"))}),new l.DefinePlugin(c.default),new l.WatchIgnorePlugin({paths:[/\.d\.ts$/]}),i.CONFIG.sourceMap&&new l.SourceMapDevToolPlugin(i.CONFIG.sourceMap),new o.default({name:"编译中",color:"#6f42c1"}),new u.default({done:function(){!g.DEV&&i.CONFIG.seo&&(0,h.seo)(),null==i.CONFIG.done||i.CONFIG.done()}})],O(i.CONFIG.plugins)).filter(Boolean),experiments:{topLevelAwait:!0,syncWebAssembly:!0,asyncWebAssembly:!0},resolve:{extensions:[".tsx",".ts",".js",".jsx"],alias:E,fallback:{path:!1,fs:!1,crypto:!1,assert:!1}},module:f.default,externals:i.CONFIG.externals,output:T};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(exports,{outputConfig:function(){return T},default:function(){return R}});var e,t,r=j(require("fs")),n=require("path"),a=j(require("add-asset-html-webpack-plugin")),s=j(require("html-webpack-plugin")),l=require("webpack"),o=j(require("webpackbar")),i=require("./common"),u=j(require("./done")),c=j(require("./envFlags")),p=j(require("./html-add-entry-attr")),d=j(require("./html-plugin-option")),m=require("./module-federation"),f=j(require("./module.config")),g=require("./process-env"),h=require("./seo"),y=require("./utils");function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function P(){return(P=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function j(e){return e&&e.__esModule?e:{default:e}}function O(e){return function(e){if(Array.isArray(e))return b(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return b(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return b(e,t)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}for(var A=[".eslintrc.js",".eslintrc.json",".eslintrc.yaml",".eslintrc.json"],v=[".stylelintrc",".stylelintrc.json",".stylelintrc.yaml",".stylelintrc.yml",".stylelintrc.js","stylelint.config.js","stylelint.config.cjs"],C=r.default.readdirSync(g.PROGRAMPATH),w=!1,G=!1,N=0,I=C.length;N<I;N++)v.includes(C[N])&&(G=!0),A.includes(C[N])&&(w=!0);w||(w=g.hasEslintConfig),G||(G=g.hasStylelintConfig);var x=G?require("stylelint-webpack-plugin"):null,F=w?require("eslint-webpack-plugin"):null,E={"@":(0,y.resolveProgramPath)("src")};Object.assign(E,i.CONFIG.alias),"library"===g.APPTYPE&&Object.assign(E,((e={"@":(0,y.resolveProgramPath)("site"),"@pkg":(0,y.resolveProgramPath)("components")})[g.PACKAGENAME]=(0,y.resolveProgramPath)("components"),e));var q=i.CONFIG.assetHtml.map(function(e){return P({publicPath:""},e)}),T={path:(0,y.resolveProgramPath)("library"===g.APPTYPE?"docs":"dist"),filename:"js/[name].bundle.js",chunkFilename:"js/[name].chunk.js",assetModuleFilename:"assets/[name].[hash][ext]",library:g.PACKAGENAME,libraryTarget:"window",globalObject:"window",chunkLoadingGlobal:"webpackJsonp_"+g.PACKAGENAME,pathinfo:!1,clean:!0,publicPath:i.PUBLICPATH},k=(0,n.join)(__dirname,"../lib/packages/"+i.ENTRYPATH[g.APPTYPE]+"/index.js");"single-component"===g.APPTYPE&&(Object.assign(E,((t={})[g.PACKAGENAME]=(0,y.resolveProgramPath)("umd"),t)),k=(0,y.resolveProgramPath)(g.DEV?"example/index.ts":"src/index.ts"),T.path=(0,y.resolveProgramPath)(g.DEV?"dist":"umd"),T.filename="index.js",T.library=g.PACKAGENAME,T.libraryTarget="umd",T.libraryExport="default");var M={main:k};i.CONFIG.entry&&("string"==typeof i.CONFIG.entry?M=i.CONFIG.entry:Object.keys(i.CONFIG.entry)&&Object.assign(M,i.CONFIG.entry)),i.CONFIG.output&&("string"==typeof i.CONFIG.output?T.path=i.CONFIG.output:Object.keys(i.CONFIG.output)&&Object.assign(T,i.CONFIG.output));var S=i.CONFIG.routeBaseName.split("/").filter(Boolean).length,_=Array(S).fill("..").join("/")+(S?"/":"")+"404.html",K=i.CONFIG.fixBrowserRouter||{},B=K.pathSegmentsToKeep,Y=void 0===B?S:B,D=K.path,R={entry:M,stats:"errors-only",infrastructureLogging:{level:"none"},target:"web",plugins:[new l.AutomaticPrefetchPlugin].concat(O(m.moduleFederation),[F&&new F({threads:!0,extensions:["js","md","mdx","cjs","ejs","mjs","jsx","ts","tsx","json","html","coffee","vue"]}),x&&new x({fix:!0,threads:!0,extensions:["css","scss","sass","less","ts","tsx","js","jsx"],exclude:["node_modules/","es/","lib/","docs/","coverage/","dist/","__tests__/"]}),new s.default(d.default),i.CONFIG.fixBrowserRouter&&new s.default({filename:void 0===D?_:D,inject:!1,templateContent:function(){return"<html html><head><title>"+d.default.title+"</title><script>var pathSegmentsToKeep = "+(Y||S)+";var l = window.location;l.replace(l.protocol + '//' + l.hostname + (l.port ? ':' + l.port : '') + l.pathname.split('/').slice(0, 1 + pathSegmentsToKeep).join('/') + '/?/' + l.pathname.slice(1).split('/').slice(pathSegmentsToKeep).join('/').replace(/&/g, '~and~') + (l.search ? '&' + l.search.slice(1).replace(/&/g, '~and~') : '') + l.hash);</script></head><body></body></html>"}}),new a.default(q),"single-spa"===g.APPTYPE&&new p.default(function(e){return!!(e.match(/main\.(.*)\.bundle.js$/)||e.match("main.bundle.js"))}),new l.DefinePlugin(c.default),new l.WatchIgnorePlugin({paths:[/\.d\.ts$/]}),i.CONFIG.sourceMap&&new l.SourceMapDevToolPlugin(i.CONFIG.sourceMap),new o.default({name:"编译中",color:"#6f42c1"}),new u.default({done:function(){!g.DEV&&i.CONFIG.seo&&(0,h.seo)(),null==i.CONFIG.done||i.CONFIG.done()}})],O(i.CONFIG.plugins)).filter(Boolean),experiments:{topLevelAwait:!0,syncWebAssembly:!0,asyncWebAssembly:!0},resolve:{extensions:[".tsx",".ts",".js",".jsx"],alias:E,fallback:{path:!1,fs:!1,crypto:!1,assert:!1}},module:f.default,externals:i.CONFIG.externals,output:T};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moneko/core",
3
- "version": "2.0.53-beta.5",
3
+ "version": "2.0.53-beta.7",
4
4
  "description": "core",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {