@moneko/core 4.4.2 → 4.4.4-beta.0
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/plugin/manifest/index.mjs +1 -1
- package/package.json +4 -4
- package/typings/global.d.ts +5 -4
- /package/lib/bin/{build-app.mjs.d.ts → build-app.d.mts} +0 -0
- /package/lib/bin/{build-dev.mjs.d.ts → build-dev.d.mts} +0 -0
- /package/lib/bin/{build.mjs.d.ts → build.d.mts} +0 -0
- /package/lib/bin/{changelog.mjs.d.ts → changelog.d.mts} +0 -0
- /package/lib/bin/{commit-lint.mjs.d.ts → commit-lint.d.mts} +0 -0
- /package/lib/bin/{eslint.mjs.d.ts → eslint.d.mts} +0 -0
- /package/lib/bin/{file.mjs.d.ts → file.d.mts} +0 -0
- /package/lib/bin/{git-hooks.mjs.d.ts → git-hooks.d.mts} +0 -0
- /package/lib/bin/{help.mjs.d.ts → help.d.mts} +0 -0
- /package/lib/bin/{index.mjs.d.ts → index.d.mts} +0 -0
- /package/lib/bin/{lessc.mjs.d.ts → lessc.d.mts} +0 -0
- /package/lib/bin/{pin.mjs.d.ts → pin.d.mts} +0 -0
- /package/lib/bin/{pure-lint.mjs.d.ts → pure-lint.d.mts} +0 -0
- /package/lib/bin/{server.mjs.d.ts → server.d.mts} +0 -0
- /package/lib/bin/{setup.mjs.d.ts → setup.d.mts} +0 -0
- /package/lib/bin/{start.mjs.d.ts → start.d.mts} +0 -0
- /package/lib/bin/{stylelint.mjs.d.ts → stylelint.d.mts} +0 -0
- /package/lib/bin/{tsc.mjs.d.ts → tsc.d.mts} +0 -0
- /package/lib/bin/utils/{bundle-app.mjs.d.ts → bundle-app.d.mts} +0 -0
- /package/lib/bin/utils/{config.mjs.d.ts → config.d.mts} +0 -0
- /package/lib/bin/utils/{convert-react.mjs.d.ts → convert-react.d.mts} +0 -0
- /package/lib/bin/utils/{get-commit-files.mjs.d.ts → get-commit-files.d.mts} +0 -0
- /package/lib/bin/utils/{setup-swcrc.mjs.d.ts → setup-swcrc.d.mts} +0 -0
- /package/lib/build/{common.mjs.d.ts → common.d.mts} +0 -0
- /package/lib/build/{server.mjs.d.ts → server.d.mts} +0 -0
- /package/lib/{build-dev.mjs.d.ts → build-dev.d.mts} +0 -0
- /package/lib/{build.mjs.d.ts → build.d.mts} +0 -0
- /package/lib/commom/{ca.mjs.d.ts → ca.d.mts} +0 -0
- /package/lib/commom/{check-npm.mjs.d.ts → check-npm.d.mts} +0 -0
- /package/lib/commom/{corepack.mjs.d.ts → corepack.d.mts} +0 -0
- /package/lib/commom/{css-in-js-minify.mjs.d.ts → css-in-js-minify.d.mts} +0 -0
- /package/lib/commom/{diff-object.mjs.d.ts → diff-object.d.mts} +0 -0
- /package/lib/commom/{esm.mjs.d.ts → esm.d.mts} +0 -0
- /package/lib/commom/{has-pkg.mjs.d.ts → has-pkg.d.mts} +0 -0
- /package/lib/commom/{host.mjs.d.ts → host.d.mts} +0 -0
- /package/lib/commom/{is-ci-environment.mjs.d.ts → is-ci-environment.d.mts} +0 -0
- /package/lib/commom/{log.mjs.d.ts → log.d.mts} +0 -0
- /package/lib/commom/{match-path.mjs.d.ts → match-path.d.mts} +0 -0
- /package/lib/commom/{mime.mjs.d.ts → mime.d.mts} +0 -0
- /package/lib/commom/{module-resolve.mjs.d.ts → module-resolve.d.mts} +0 -0
- /package/lib/commom/{net.mjs.d.ts → net.d.mts} +0 -0
- /package/lib/commom/{open.mjs.d.ts → open.d.mts} +0 -0
- /package/lib/commom/{package-manager.mjs.d.ts → package-manager.d.mts} +0 -0
- /package/lib/commom/{parse-args.mjs.d.ts → parse-args.d.mts} +0 -0
- /package/lib/commom/{paths.mjs.d.ts → paths.d.mts} +0 -0
- /package/lib/commom/{print-log.mjs.d.ts → print-log.d.mts} +0 -0
- /package/lib/commom/{reactive-object.mjs.d.ts → reactive-object.d.mts} +0 -0
- /package/lib/commom/{read-json.mjs.d.ts → read-json.d.mts} +0 -0
- /package/lib/commom/{require.mjs.d.ts → require.d.mts} +0 -0
- /package/lib/commom/{rule.mjs.d.ts → rule.d.mts} +0 -0
- /package/lib/commom/{setup-env.mjs.d.ts → setup-env.d.mts} +0 -0
- /package/lib/commom/{sigint-exit.mjs.d.ts → sigint-exit.d.mts} +0 -0
- /package/lib/commom/{timer.mjs.d.ts → timer.d.mts} +0 -0
- /package/lib/commom/{transfer-import-on-demand.mjs.d.ts → transfer-import-on-demand.d.mts} +0 -0
- /package/lib/commom/{transform-solid-js.mjs.d.ts → transform-solid-js.d.mts} +0 -0
- /package/lib/{common.mjs.d.ts → common.d.mts} +0 -0
- /package/lib/{config.mjs.d.ts → config.d.mts} +0 -0
- /package/lib/{create-development-configuration.mjs.d.ts → create-development-configuration.d.mts} +0 -0
- /package/lib/dev/{config.mjs.d.ts → config.d.mts} +0 -0
- /package/lib/dev/{generate-progress-html.mjs.d.ts → generate-progress-html.d.mts} +0 -0
- /package/lib/dev/{get-cert.mjs.d.ts → get-cert.d.mts} +0 -0
- /package/lib/dev/{json-schema.mjs.d.ts → json-schema.d.mts} +0 -0
- /package/lib/dev/{mock.mjs.d.ts → mock.d.mts} +0 -0
- /package/lib/dev/{proxy.mjs.d.ts → proxy.d.mts} +0 -0
- /package/lib/dev/{server.mjs.d.ts → server.d.mts} +0 -0
- /package/lib/{dev.mjs.d.ts → dev.d.mts} +0 -0
- /package/lib/{file-system.mjs.d.ts → file-system.d.mts} +0 -0
- /package/lib/{index.mjs.d.ts → index.d.mts} +0 -0
- /package/lib/lint/eslint/{base.mjs.d.ts → base.d.mts} +0 -0
- /package/lib/lint/eslint/{index.mjs.d.ts → index.d.mts} +0 -0
- /package/lib/lint/eslint/{react-jsx.mjs.d.ts → react-jsx.d.mts} +0 -0
- /package/lib/lint/eslint/{react-legacy.mjs.d.ts → react-legacy.d.mts} +0 -0
- /package/lib/lint/eslint/{react.mjs.d.ts → react.d.mts} +0 -0
- /package/lib/lint/eslint/{solid.mjs.d.ts → solid.d.mts} +0 -0
- /package/lib/lint/eslint/{vue.mjs.d.ts → vue.d.mts} +0 -0
- /package/lib/lint/stylelint/{config.mjs.d.ts → config.d.mts} +0 -0
- /package/lib/lint/stylelint/{index.mjs.d.ts → index.d.mts} +0 -0
- /package/lib/loader/{css-in-js-minify.cjs.d.ts → css-in-js-minify.d.cts} +0 -0
- /package/lib/loader/{lightning-css.cjs.d.ts → lightning-css.d.cts} +0 -0
- /package/lib/loader/{mdx.cjs.d.ts → mdx.d.cts} +0 -0
- /package/lib/loader/{react-compiler.cjs.d.ts → react-compiler.d.cts} +0 -0
- /package/lib/loader/{solid.cjs.d.ts → solid.d.cts} +0 -0
- /package/lib/{module.config.mjs.d.ts → module.config.d.mts} +0 -0
- /package/lib/options/{jsx-dom-expressions.mjs.d.ts → jsx-dom-expressions.d.mts} +0 -0
- /package/lib/options/{md-to-html.mjs.d.ts → md-to-html.d.mts} +0 -0
- /package/lib/options/{modify-vars.mjs.d.ts → modify-vars.d.mts} +0 -0
- /package/lib/options/{reslove.mjs.d.ts → reslove.d.mts} +0 -0
- /package/lib/options/{split-chunk.mjs.d.ts → split-chunk.d.mts} +0 -0
- /package/lib/options/{swcrc.mjs.d.ts → swcrc.d.mts} +0 -0
- /package/lib/plugin/{compression.mjs.d.ts → compression.d.mts} +0 -0
- /package/lib/plugin/{copy.mjs.d.ts → copy.d.mts} +0 -0
- /package/lib/plugin/{css-module-dts.mjs.d.ts → css-module-dts.d.mts} +0 -0
- /package/lib/plugin/{done.mjs.d.ts → done.d.mts} +0 -0
- /package/lib/plugin/{eslint.mjs.d.ts → eslint.d.mts} +0 -0
- /package/lib/plugin/{exposes-declararion.mjs.d.ts → exposes-declararion.d.mts} +0 -0
- /package/lib/plugin/{external-remotes.mjs.d.ts → external-remotes.d.mts} +0 -0
- /package/lib/plugin/{html-plugin.mjs.d.ts → html-plugin.d.mts} +0 -0
- /package/lib/plugin/{lightningcss-plugin.mjs.d.ts → lightningcss-plugin.d.mts} +0 -0
- /package/lib/plugin/manifest/{index.mjs.d.ts → index.d.mts} +0 -0
- /package/lib/plugin/manifest/{types.mjs.d.ts → types.d.mts} +0 -0
- /package/lib/plugin/{module-federation.mjs.d.ts → module-federation.d.mts} +0 -0
- /package/lib/plugin/{override-resolve.mjs.d.ts → override-resolve.d.mts} +0 -0
- /package/lib/plugin/{stylelint.mjs.d.ts → stylelint.d.mts} +0 -0
- /package/lib/plugin/{swc-minify-plugin.mjs.d.ts → swc-minify-plugin.d.mts} +0 -0
- /package/lib/plugin/{virtual-module.mjs.d.ts → virtual-module.d.mts} +0 -0
- /package/lib/{plugins.config.mjs.d.ts → plugins.config.d.mts} +0 -0
- /package/lib/polyfills/{inject-react-refresh.mjs.d.ts → inject-react-refresh.d.mts} +0 -0
- /package/lib/polyfills/{polyfills.mjs.d.ts → polyfills.d.mts} +0 -0
- /package/lib/polyfills/{public-path.mjs.d.ts → public-path.d.mts} +0 -0
- /package/lib/polyfills/{replace-children.mjs.d.ts → replace-children.d.mts} +0 -0
- /package/lib/polyfills/{targets.mjs.d.ts → targets.d.mts} +0 -0
- /package/lib/{process-env.mjs.d.ts → process-env.d.mts} +0 -0
- /package/lib/service-worker/{precaching.js.d.ts → precaching.d.ts} +0 -0
- /package/lib/utils/{compile-dts.mjs.d.ts → compile-dts.d.mts} +0 -0
- /package/lib/utils/{create-types.mjs.d.ts → create-types.d.mts} +0 -0
- /package/lib/utils/{dts.mjs.d.ts → dts.d.mts} +0 -0
- /package/lib/utils/{fetch-module-federation-dts.mjs.d.ts → fetch-module-federation-dts.d.mts} +0 -0
- /package/lib/utils/{index.mjs.d.ts → index.d.mts} +0 -0
- /package/lib/utils/{run.mjs.d.ts → run.d.mts} +0 -0
- /package/lib/utils/{seo.mjs.d.ts → seo.d.mts} +0 -0
- /package/lib/utils/{svg-to-data-uri.mjs.d.ts → svg-to-data-uri.d.mts} +0 -0
- /package/lib/utils/{vts.mjs.d.ts → vts.d.mts} +0 -0
- /package/lib/vm/{app.mjs.d.ts → app.d.mts} +0 -0
- /package/lib/vm/{coverage.mjs.d.ts → coverage.d.mts} +0 -0
- /package/lib/vm/{docs.mjs.d.ts → docs.d.mts} +0 -0
- /package/lib/vm/{dts.mjs.d.ts → dts.d.mts} +0 -0
- /package/lib/vm/{example.mjs.d.ts → example.d.mts} +0 -0
- /package/lib/vm/{generate-doc.mjs.d.ts → generate-doc.d.mts} +0 -0
- /package/lib/vm/{locales.mjs.d.ts → locales.d.mts} +0 -0
- /package/lib/vm/{render-app.mjs.d.ts → render-app.d.mts} +0 -0
- /package/lib/vm/{routes.mjs.d.ts → routes.d.mts} +0 -0
- /package/lib/vm/{scope.mjs.d.ts → scope.d.mts} +0 -0
- /package/lib/vm/{sw.mjs.d.ts → sw.d.mts} +0 -0
- /package/lib/vm/{virtual.mjs.d.ts → virtual.d.mts} +0 -0
- /package/lib/worker/{compression.mjs.d.ts → compression.d.mts} +0 -0
- /package/lib/worker/{css-in-js-minify.mjs.d.ts → css-in-js-minify.d.mts} +0 -0
- /package/lib/worker/{dts.mjs.d.ts → dts.d.mts} +0 -0
- /package/lib/worker/{eslint.mjs.d.ts → eslint.d.mts} +0 -0
- /package/lib/worker/{react-compiler.mjs.d.ts → react-compiler.d.mts} +0 -0
- /package/lib/worker/{solid.mjs.d.ts → solid.d.mts} +0 -0
- /package/lib/worker/{stylelint.mjs.d.ts → stylelint.d.mts} +0 -0
- /package/lib/worker/{swc-minify.mjs.d.ts → swc-minify.d.mts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{existsSync as s,readFileSync as t}from"node:fs";import{basename as e,join as i,resolve as o}from"node:path";import r from"webpack";import{isDev as
|
|
1
|
+
import{existsSync as s,readFileSync as t}from"node:fs";import{basename as e,join as i,resolve as o}from"node:path";import r from"webpack";import{isDev as n,packageJson as a}from"../../process-env.mjs";export*from"./types.mjs";let{PROCESS_ASSETS_STAGE_SUMMARIZE:p,PROCESS_ASSETS_STAGE_REPORT:c}=r.Compilation;export class ManifestPlugin{constructor(s){this.name="ManifestPlugin",this.options={filename:"site.webmanifest",resourcesFilename:"app-resource.json",name:a.name,description:a.description,scope:"/",display:"standalone",background_color:"#fff",icons:[{src:"https://h5static.dewucdn.com/node-common/718d5e10-576d-8b14-b0b1-e4c58c3b3f40.webp",type:"image/webp",sizes:"512x512"}]},this.options={...this.options,...s}}getPublicPath(s){if(this.options.publicPath)return this.options.publicPath;let t=s.getAssetPath(s.outputOptions.publicPath,{hash:s.hash}),e="auto"===t?"/":t;return e.length&&!e.endsWith("/")&&(e+="/"),e}addAsset(n,a,p){if(!p)return;let c=this.getPublicPath(a);return p.map(p=>{let l={...p};if(l.src&&!l.src.startsWith("http")){let p=o(n.context,l.src);if(s(p)){let s=e(l.src),o=t(p);a.emitAsset(s,new r.sources.RawSource(o),{javascriptModule:!1}),l.src=i(c,s)}else a.warnings.push(new r.WebpackError(`Asset file ${p} does not exist`))}return l})}apply(s){let t=this.name,{filename:e,resourcesFilename:i,start_url:o,icons:r,screenshots:l,...h}=this.options;s.hooks.thisCompilation.tap(t,u=>{u.hooks.processAssets.tap({name:t,stage:n?p:c},()=>{let t={...h,start_url:o??this.getPublicPath(u),screenshots:this.addAsset(s,u,l),icons:this.addAsset(s,u,r),version:`${a.version}(${n?"Dev":u.fullHash})`};if(u.emitAsset(e,new s.webpack.sources.RawSource(JSON.stringify(t)),{javascriptModule:!1}),i){let t=[];if(n)for(let[,s]of u.entrypoints)s.getFiles().forEach(s=>{t.includes(s)||t.push(s)});else t=u.getAssets().map(s=>s.name);u.emitAsset(i,new s.webpack.sources.RawSource(JSON.stringify(t)),{javascriptModule:!0})}})})}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moneko/core",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.4-beta.0",
|
|
4
4
|
"description": "core",
|
|
5
5
|
"main": "lib/index.mjs",
|
|
6
6
|
"type": "module",
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
"homepage": "https://monako97.github.io/neko-ui/@moneko/config",
|
|
129
129
|
"license": "MIT",
|
|
130
130
|
"dependencies": {
|
|
131
|
-
"@moneko/convert": "1.
|
|
131
|
+
"@moneko/convert": "1.2.0",
|
|
132
132
|
"@moneko/eslint": "1.11.0",
|
|
133
133
|
"@moneko/mdx": "1.0.3",
|
|
134
134
|
"@moneko/raw-import": "1.3.0",
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
"@moneko/stylelint": "1.8.0",
|
|
137
137
|
"@moneko/transform-imports": "1.4.0",
|
|
138
138
|
"@moneko/utils": "0.3.3",
|
|
139
|
-
"@swc/core": "1.15.
|
|
139
|
+
"@swc/core": "1.15.8",
|
|
140
140
|
"browserslist": "4.28.1",
|
|
141
141
|
"core-js": "3.47.0",
|
|
142
142
|
"core-js-compat": "3.47.0",
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
"@types/stylis": "4.2.7",
|
|
158
158
|
"@types/webpack-bundle-analyzer": "4.7.0",
|
|
159
159
|
"@types/webpack-hot-middleware": "2.25.12",
|
|
160
|
-
"sass": "1.97.
|
|
160
|
+
"sass": "1.97.2",
|
|
161
161
|
"sass-loader": "16.0.6",
|
|
162
162
|
"solid-refresh": "0.7.5"
|
|
163
163
|
},
|
package/typings/global.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ import type {
|
|
|
14
14
|
SourceMapDevToolPlugin,
|
|
15
15
|
RuleSetConditionAbsolute,
|
|
16
16
|
experiments,
|
|
17
|
+
container,
|
|
17
18
|
} from 'webpack';
|
|
18
19
|
|
|
19
20
|
import type { CopyPluginOption } from '../lib/plugin/copy.mjs';
|
|
@@ -580,16 +581,16 @@ declare interface HttpUriOptions {
|
|
|
580
581
|
*/
|
|
581
582
|
upgrade?: boolean;
|
|
582
583
|
}
|
|
583
|
-
|
|
584
|
+
|
|
585
|
+
type ModuleFederationPluginOption = ConstructorParameters<typeof container.ModuleFederationPlugin>[number];
|
|
586
|
+
export declare interface ModuleFederationOption extends ModuleFederationPluginOption {
|
|
584
587
|
/** 模块名称,唯一性,不能重名 */
|
|
585
588
|
name: string;
|
|
586
589
|
/** 打包的模块文件名 默认: remote_entry.js */
|
|
587
590
|
filename?: string;
|
|
588
591
|
library?: {
|
|
589
|
-
type: 'var' |
|
|
590
|
-
name: string;
|
|
592
|
+
type: 'var' | 'module' | 'assign' | 'assign-properties' | 'this' | 'window' | 'self' | 'global' | 'commonjs' | 'commonjs2' | 'commonjs-module' | 'commonjs-static' | 'amd' | 'amd-require' | 'umd' | 'umd2' | 'jsonp' | 'system';
|
|
591
593
|
};
|
|
592
|
-
runtime?: string;
|
|
593
594
|
/** 表示作为 Host 时, 去消费哪些 Remote */
|
|
594
595
|
remotes?: {
|
|
595
596
|
/** 远程模块名称 */
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/lib/{create-development-configuration.mjs.d.ts → create-development-configuration.d.mts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/lib/utils/{fetch-module-federation-dts.mjs.d.ts → fetch-module-federation-dts.d.mts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|