@moneko/core 3.1.1 → 3.1.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/virtual-module-plugin.js +1 -1
- package/package.json +12 -12
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"webpack-virtual-modules";import{docs as e}from"./docs.js";import{locales as o}from"./locales.js";import{isLibrary as a}from"./process-env.js";import{example as
|
|
1
|
+
import t from"webpack-virtual-modules";import{docs as e}from"./docs.js";import{locales as o}from"./locales.js";import{isLibrary as a}from"./process-env.js";import{example as l,route as r}from"./routes.js";import{resolveNodeModulesPath as i}from"./utils.js";let s={};function n(t,e,o){let a=i(e),l=s[a];null!==l&&clearTimeout(l),s[a]=setTimeout(()=>{null!==l&&clearTimeout(l),s[a]=null,t.getModuleList("all")[a]!==o&&t.writeModule(a,o)},12)}export default class{constructor(t){this.options=t}apply(s){let p=new t({[i(r.data.name)]:r.data.data,[i(l.data.name)]:"export default []",[i(o.data.name)]:o.data.data});r.listener(t=>{t.data&&n(p,t.name,t.data)}),o.listener(t=>{t.data&&n(p,t.name,t.data)}),a&&(l.listener(t=>{let e=t.data;for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&e[t]&&n(p,t,e[t])}),e.listener(t=>{for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&t[e]&&n(p,e,t[e])})),p.apply(s),s.hooks.compilation.tap("VirtualModulePlugin",()=>{for(let t in this.options)if(Object.prototype.hasOwnProperty.call(this.options,t)){let e=this.options[t];"string"==typeof e?n(p,t,e):n(p,t,`export default ${JSON.stringify(e)}`)}})}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moneko/core",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.3",
|
|
4
4
|
"description": "core",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -14,13 +14,13 @@
|
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@mdx-js/loader": "2.3.0",
|
|
16
16
|
"@soda/friendly-errors-webpack-plugin": "1.8.1",
|
|
17
|
-
"@swc/core": "1.3.
|
|
17
|
+
"@swc/core": "1.3.94",
|
|
18
18
|
"@swc/css": "0.0.28",
|
|
19
19
|
"@swc/helpers": "0.5.3",
|
|
20
20
|
"@teamsupercell/typings-for-css-modules-loader": "2.5.2",
|
|
21
21
|
"add-asset-html-webpack-plugin": "6.0.0",
|
|
22
|
-
"core-js": "3.
|
|
23
|
-
"core-js-compat": "3.
|
|
22
|
+
"core-js": "3.33.1",
|
|
23
|
+
"core-js-compat": "3.33.1",
|
|
24
24
|
"cross-env": "7.0.3",
|
|
25
25
|
"css-loader": "6.8.1",
|
|
26
26
|
"css-minimizer-webpack-plugin": "5.0.1",
|
|
@@ -35,25 +35,25 @@
|
|
|
35
35
|
"swc-loader": "0.2.3",
|
|
36
36
|
"swc-plugin-another-transform-imports": "0.2.7",
|
|
37
37
|
"ts-import-plugin": "3.0.0",
|
|
38
|
-
"ts-loader": "9.
|
|
38
|
+
"ts-loader": "9.5.0",
|
|
39
39
|
"typescript": "5.2.2",
|
|
40
40
|
"webpack": "5.77.0",
|
|
41
41
|
"webpack-bundle-analyzer": "4.9.1",
|
|
42
42
|
"webpack-cli": "5.1.4",
|
|
43
43
|
"webpack-dev-server": "4.15.1",
|
|
44
|
-
"webpack-merge": "5.
|
|
45
|
-
"webpack-virtual-modules": "0.
|
|
44
|
+
"webpack-merge": "5.10.0",
|
|
45
|
+
"webpack-virtual-modules": "0.6.0",
|
|
46
46
|
"webpackbar": "5.0.2",
|
|
47
47
|
"xml2js": "0.6.2"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@swc/cli": "0.1.62",
|
|
51
|
-
"@types/js-yaml": "4.0.
|
|
51
|
+
"@types/js-yaml": "4.0.8",
|
|
52
52
|
"@types/mini-css-extract-plugin": "2.5.1",
|
|
53
|
-
"@types/shelljs": "0.8.
|
|
54
|
-
"@types/webpack-bundle-analyzer": "4.6.
|
|
55
|
-
"@types/webpack-env": "1.18.
|
|
56
|
-
"eslint-config-neko": "2.0.
|
|
53
|
+
"@types/shelljs": "0.8.14",
|
|
54
|
+
"@types/webpack-bundle-analyzer": "4.6.2",
|
|
55
|
+
"@types/webpack-env": "1.18.3",
|
|
56
|
+
"eslint-config-neko": "2.0.2",
|
|
57
57
|
"shelljs": "0.8.5",
|
|
58
58
|
"stylelint-config-moneko": "1.0.18"
|
|
59
59
|
},
|