@moneko/core 3.39.0-beta.1 → 3.39.0-beta.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/config.mjs +1 -1
- package/lib/dev.d.mts +8 -2
- package/lib/dev.mjs +2 -2
- package/lib/plugins.config.mjs +1 -1
- package/package.json +2 -1
- package/typings/global.d.ts +1 -1
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 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,open:!0},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;
|
|
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,open:!0,https:!0},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.d.mts
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import { exec, spawn } from 'node:child_process';
|
|
2
2
|
import { type createReadStream, type existsSync, watchFile } from 'node:fs';
|
|
3
|
-
import { extname, relative, sep } from 'node:path';
|
|
4
|
-
import {
|
|
3
|
+
import { extname, join, relative, sep } from 'node:path';
|
|
4
|
+
import { platform } from 'node:process';
|
|
5
|
+
import { ink, loadFile, print, println, progressBar, saveFile } from '@moneko/utils';
|
|
5
6
|
import fastify, { type FastifyInstance, type FastifyReply, type FastifyRequest } from 'fastify';
|
|
7
|
+
import { createCA, createCert } from 'mkcert';
|
|
6
8
|
import webpack, { type Compiler, type OutputFileSystem, type Watching, type WebpackPluginInstance } from 'webpack';
|
|
7
9
|
import webpackHotMiddleware, { type ClientOptions } from 'webpack-hot-middleware';
|
|
8
10
|
import { merge } from 'webpack-merge';
|
|
9
11
|
import { diffObject } from './commom/diff-object.mjs';
|
|
12
|
+
import log from './commom/log.mjs';
|
|
10
13
|
import mime from './commom/mime.mjs';
|
|
14
|
+
import { getIPv4 } from './commom/net.mjs';
|
|
11
15
|
import open from './commom/open.mjs';
|
|
12
16
|
import paths, { config_files } from './commom/paths.mjs';
|
|
13
17
|
import sigintExit from './commom/sigint-exit.mjs';
|
|
@@ -47,6 +51,8 @@ interface FastifyOptions {
|
|
|
47
51
|
};
|
|
48
52
|
}
|
|
49
53
|
declare const fastifyOptions: FastifyOptions;
|
|
54
|
+
declare async function getCert();
|
|
55
|
+
declare function installCA(caCertPath: string);
|
|
50
56
|
declare const hotMiddleware: ReturnType<typeof webpackHotMiddleware>;
|
|
51
57
|
declare const app: FastifyInstance;
|
|
52
58
|
declare const normalHeaders: Record<string, string>;
|
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,
|
|
2
|
-
`):(
|
|
1
|
+
import{exec as e,spawn as t}from"node:child_process";import{watchFile as o}from"node:fs";import{extname as r,join as s,relative as i,sep as n}from"node:path";import{platform as l}from"node:process";import{ink as a,loadFile as c,print as m,println as p,progressBar as d,saveFile as f}from"@moneko/utils";import u from"fastify";import{createCA as h,createCert as g}from"mkcert";import y from"webpack";import w from"webpack-hot-middleware";import{merge as v}from"webpack-merge";import{diffObject as x}from"./commom/diff-object.mjs";import b from"./commom/log.mjs";import $ from"./commom/mime.mjs";import{getIPv4 as k}from"./commom/net.mjs";import C from"./commom/open.mjs";import j,{config_files as P}from"./commom/paths.mjs";import S from"./commom/sigint-exit.mjs";import{devLog as A,getServerAddress as _,PORT as z}from"./dev/config.mjs";import E from"./dev/mock.mjs";import{setupProxy as T}from"./dev/proxy.mjs";import H from"./options/reslove.mjs";import I from"./plugin/eslint.mjs";import O from"./plugin/stylelint.mjs";import{empty as B}from"./utils/index.mjs";import{commonConfig as R}from"./common.mjs";import{CONFIG as M,getConfig as q,PUBLICPATH as U}from"./config.mjs";import{outputFileSystem as F}from"./file-system.mjs";import L from"./module.config.mjs";import{isLibrary as N,isReact as K,refresh as W}from"./process-env.mjs";let D=`${U.endsWith("/")?"":"/"}__hmr__`,G=new URLSearchParams({name:"client",path:D,dynamicPublicPath:!0,timeout:2e3,reload:!W,quiet:!0,noInfo:!0,overlay:!1,autoConnect:!0}).toString(),X=v(R,{watchOptions:{ignored:/node_modules\/(?!(@app|@moneko)).+/},entry:{main:[`${H.hotMiddlewareClient}?${G}`]},module:L(!1),plugins:[new y.HotModuleReplacementPlugin,new y.WatchIgnorePlugin({paths:[/node_modules\/(?!(@app|@moneko)).+/,/\.d\.ts$/]})]});if(X.plugins||(X.plugins=[]),K){let e=(await import("@pmmmwh/react-refresh-webpack-plugin")).default;X.plugins.push(new e({overlay:!1}))}function Y(e){let t=e.join(","),o=[i(j.programPath,`${M.alias["@"]}/**/*.{${t}}`).replace(/\\/g,"/")];return N&&o.push(i(j.programPath,`${M.alias["@pkg"]}/**/*.{${t}}`).replace(/\\/g,"/")),o}M.eslint&&X.plugins.push(new I({fix:!0,cache:!0,cacheLocation:`${j.lintCachePath}/.eslintcache`,cacheStrategy:"metadata",files:Y(["js","jsx","ts","tsx","json","html","vue"]),...M.eslint})),M.stylelint&&X.plugins.push(new O({fix:!0,cache:!0,cacheLocation:`${j.lintCachePath}/.stylelintcache`,files:Y(["css","scss","sass","less","ts","tsx","js","jsx"]),...M.stylelint}));let J=!1,Q="/____progress____",V={percentage:0,info:""};if(M.bar){let e=M.bar,t=e.name||"Build";X.plugins.push(new y.ProgressPlugin({handler(o,r,...s){let i=s.length?`[${r}] ${s.join(" ")}`:" ";J||(V.info=i,V.percentage=o,J=1===o),e.quiet?process.stdout.write(`${i}
|
|
2
|
+
`):(d(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 Z=y(X);Z.outputFileSystem=F;let ee=Z.watch(Z.options.watchOptions,A);Z.hooks.done.tap("client-log",e=>{A(null,e)});let et={};async function eo(){if("object"==typeof M.devServer.https&&M.devServer.https.key&&M.devServer.https.cert){let e=await Promise.all([c(M.devServer.https.key),c(M.devServer.https.cert)]);return e[0]||(p(a(`法加载私钥。请检查路径和文件是否存在,并确保路径正确:${M.devServer.https.key}`,"red")),process.exit(1)),e[1]||(p(a(`无法加载证书。请检查路径和文件是否存在,并确保路径正确:${M.devServer.https.cert}`,"red")),process.exit(1)),{key:e[0],cert:e[1]}}let t=await h({organization:"Hello World",countryCode:"NP",state:"Bagmati",locality:"Kathmandu",validity:365}),o=s(j.corePath,"ca.cert");return await f(o,t.cert),(console.log(`🔐 Installing local dev CA: ${o}`),"darwin"===l)?e(`security add-trusted-cert -d -r trustRoot -k "$HOME/Library/Keychains/login.keychain-db" "${o}"`,(e,t,o)=>{if(e){if(o.includes("already exists")){console.log(`✅ CA 已安装,无需重复操作`);return}b(e);return}console.log(`✅ 安装成功`)}):"win32"===l?e(`certutil -addstore -user "Root" "${o}"`,(e,t,o)=>{if(e){if(o.includes("already exists")){console.log(`✅ CA 已安装,无需重复操作`);return}b(e);return}console.log(`✅ 安装成功`)}):console.warn("⚠️ 暂不支持自动安装 CA 的平台:",l),await g({ca:{key:t.key,cert:t.cert},domains:["127.0.0.1","localhost",M.devServer.host,k()].filter(Boolean),validity:365})}if(M.devServer.https){let e=await eo();et.http2=!0,et.https={key:e.key,cert:e.cert}}let er=w(Z,{log:!1,path:D,heartbeat:2e3}),es=u({logger:!1,...et});E(es,{directory:j.mockPath}),T(es,M.proxy);let ei={"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",...M.devServer.headers||{}};function en(e,t,o){t.headers(ei),e.headers.origin&&t.header("Access-Control-Allow-Origin",e.headers.origin);let s=Z.outputFileSystem,i=e.headers["accept-encoding"],n=i?.includes("br"),l=`${o}.${n?"br":"gz"}`,a=s.existsSync?.(l);a&&t.header("content-encoding",n?"br":"gzip");let c=s.createReadStream?.(a?l:o,{autoClose:!0});c?.on("error",e=>{if(c.destroy(),!t.sent)return t.code(404).type("text/html").send(`File not found: ${e.message}`)});let m=$[r(o)];return m&&t.header("content-type",m),t.send(c)}function el(){process.exit(0)}es.get(Q,(e,t)=>{t.headers(ei),t.send(V)}),es.get(`/${D}`.replace("//","/"),async(e,t)=>{if("text/event-stream"===e.headers.accept){e.raw.url=D,er(e.raw,t.raw,()=>{t.raw.writableEnded&&(t.sent=!0)});return}}),es.addHook("onRequest",(e,t,o)=>{if(e.url===Q)return o();if(!J)return t.type("text/html").send(function(e){let t=Math.floor(100*e.percentage);return`<!DOCTYPE html><html><head><title>Building...</title><link rel="image/x-icon" href="/favicon.ico"><style>html{ display:flex; justify-content:center; align-items:center; block-size:100vb;}.progress-container{ position:relative; overflow:hidden; margin:1rem auto; border:0.0625rem solid #ccc; border-radius:0.625rem; inline-size:18.75rem; block-size:1.25rem;}.progress-bar{ block-size:100%; background:#4caf50; inline-size:0%; transition:inline-size 0.5s ease;}#progress-text{ position:absolute; margin:auto; font-size:0.875rem; font-family:sans-serif; font-weight:600; text-align:center; color:#fff; text-shadow:0 0 0.0625rem black; inset-inline:0; inset-block:0; line-height:1.25rem;}#progress-info{ font-size:small; font-family:sans-serif; font-weight:100; text-align:center; opacity:0.5; margin-block-start:0.625rem;}</style></head><body><div class="progress-container"><div class="progress-bar"></div><div id="progress-text">${t}%</div></div><div id="progress-info">${e.info}</div><script>function checkProgress() {fetch('${Q}').then(r => r.json()) .then(data => {const percentage = Math.floor(data.percentage * 100);document.querySelector('.progress-bar').style.width = percentage + '%';document.getElementById('progress-text').textContent = percentage + '%';document.getElementById('progress-info').textContent = data.info;if (percentage === 100) {window.location.reload();} else {setTimeout(checkProgress, 500);}});}checkProgress();</script></body></html>`}(V)),o();let r=decodeURIComponent(`${Z.options.output.path}${n}${"/"===e.url?"index.html":e.url}`);return Z.outputFileSystem?.existsSync?.(r)?en(e,t,r):o()}),es.setNotFoundHandler((e,t)=>en(e,t,`${Z.options.output.path}${n}index.html`)),es.addHook("onClose",()=>{ee.close(B),es.server.close(B)}),es.listen({port:z}),M.devServer.open&&C(_("local"));let ea=await Promise.all(P.map(q)),ec=v(ea[0]||{},ea[1]||{});P.forEach(function(t){o(t,async function(){let[o,r]=await Promise.all(P.map(q)),s=v(o||{},r||{}),i=x(ec,s);1===Object.keys(i).length&&"proxy"in i?(m(a(`代理更新中...`,"yellow"),!0),await T(es,s.proxy),m(a(`代理更新完成...`,"green"),!0),M.proxy=s.proxy,ec.proxy=s.proxy,ec=s):(ec=s,p(a(`检测到工程配置${a(`[${t}]`,"blue")}变更, 程序即将重启...`,"yellow"),!0),e(em?`netstat -ano | findstr :${z}`:`lsof -i :${z} -t`,(e,t)=>{if(e){p(a(`查找端口 ${z} 时发生错误: ${e.message}`,"red")),p(a("请尝试手动重启程序","yellow"));return}let o=t.trim().replace(/\r\n/g,"\n").split("\n").filter(Boolean),r=em?o[0]?.split(/\s+/).pop()?.trim():o[0]?.trim();if(!r){p(a(`未找到占用端口 ${z} 的进程, 请尝试手动重启程序`,"yellow"));return}try{process.kill(Number(r),"SIGHUP")}catch(e){p(a(`终止进程 ${r} 时发生错误: ${e.message}`,"red"))}}))})});let em="win32"===process.platform;process.on("SIGHUP",function(){es.close(B),function(){let e=t(process.argv[0],process.argv.slice(1),{detached:!1,stdio:"inherit"});e.unref(),e.on("close",el)}()}),process.on("exit",function(){es.close(B)}),S(el);
|
package/lib/plugins.config.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"webpack";import t from"./plugin/compression.mjs";import{CopyPlugin as i}from"./plugin/copy.mjs";import{HtmlPlugin as o}from"./plugin/html-plugin.mjs";import r from"./plugin/module-federation.mjs";import{VirtualModuleWebpackPlugin as l}from"./plugin/virtual-module.mjs";import{CONFIG as n}from"./config.mjs";import{isDev as p,packageJson as
|
|
1
|
+
import e from"webpack";import t from"./plugin/compression.mjs";import{CopyPlugin as i}from"./plugin/copy.mjs";import{HtmlPlugin as o}from"./plugin/html-plugin.mjs";import r from"./plugin/module-federation.mjs";import{VirtualModuleWebpackPlugin as l}from"./plugin/virtual-module.mjs";import{CONFIG as n}from"./config.mjs";import{isDev as p,packageJson as a}from"./process-env.mjs";let s=[...r,new l(n.virtualModule),new i(n.copy),new e.DefinePlugin({"process.env":JSON.stringify(n.env)}),new e.IgnorePlugin({resourceRegExp:/\/(__(tests|mocks)__|test|spec|e2e)\//}),...n.plugins,p&&new t({algorithm:"brotli",test:/\.(js|css|html|svg)$/})].filter(Boolean);if(n.htmlPluginOption){let e={charset:"UTF-8","X-UA-Compatible":{"http-equiv":"X-UA-Compatible",content:"IE=edge,Chrome=1"},HandheldFriendly:"true",MobileOptimized:"320","screen-orientation":"portrait","x5-orientation":"portrait",browsermode:"application","x5-page-mode":"app","msapplication-tap-highlight":"no","mobile-web-app-capable":"yes",renderer:"webkit",description:a.description,keywords:Array.isArray(a.keywords)?a.keywords.toString():"","http-equiv":"refresh",viewport:"width=device-width, initial-scale=1"};n.seo&&(e.relCanonical={rel:"canonical",href:`https://${n.seo.domain}${n.basename}`}),n.htmlPluginOption.meta&&Object.assign(e,n.htmlPluginOption.meta),s.push(new o({...n.htmlPluginOption,meta:e}))}if(n.fixBrowserRouter){let e=n.basename.split("/").filter(Boolean).length,t=`${Array(e).fill("..").join("/")+(e?"/":"")}404.html`,i=n.fixBrowserRouter.pathSegmentsToKeep??e;s.push(new o({filename:n.fixBrowserRouter.path??t,inject:!1,templateContent:()=>`<html lang="en"><head><title>Redirect</title><script>const pathKeep = ${i};const l = window.location;l.replace(l.protocol + '//' + l.hostname + (l.port ? ':' + l.port : '') + l.pathname.split('/').slice(0, 1 + pathKeep).join('/') + '/?/' + l.pathname.slice(1).split('/').slice(pathKeep).join('/').replace(/&/g, '~and~') + (l.search ? '&' + l.search.slice(1).replace(/&/g, '~and~') : '') + l.hash);</script></head><body></body></html>`}))}n.sourceMap&&s.push(new e.SourceMapDevToolPlugin(n.sourceMap));export default s;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moneko/core",
|
|
3
|
-
"version": "3.39.0-beta.
|
|
3
|
+
"version": "3.39.0-beta.3",
|
|
4
4
|
"description": "core",
|
|
5
5
|
"main": "lib/index.mjs",
|
|
6
6
|
"type": "module",
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
"marked-completed": "1.2.14",
|
|
37
37
|
"memfs": "4.17.0",
|
|
38
38
|
"mini-css-extract-plugin": "2.9.2",
|
|
39
|
+
"mkcert": "3.2.0",
|
|
39
40
|
"style-loader": "4.0.0",
|
|
40
41
|
"swc-loader": "0.2.6",
|
|
41
42
|
"typescript": "5.8.3",
|