@moneko/core 3.9.21 → 3.10.0-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.
@@ -1 +1 @@
1
- import{merge as e}from"webpack-merge";import{CONFIG as r}from"../config.mjs";import o from"../paths.mjs";import t from"../polyfills/polyfills.mjs";import{isDev as s,isReact as m,isSolid as a,jsxImportSource as l}from"../process-env.mjs";let p=function(e){for(let r=0,o=Object.keys(e),t=o.length;r<t;r++)e[o[r]].transform=`${o[r]}/${e[o[r]].transform}`,e[o[r]].style&&(e[o[r]].style=`${o[r]}/${e[o[r]].style}`);return e}(r.importOnDemand||{}),i={include:t(),mode:"entry",coreJs:"3.35"};export default(t=>e({module:{type:"es6",resolveFully:!0},jsc:{parser:{syntax:"typescript",tsx:!0,decorators:!0,dynamicImport:!0},loose:!0,target:r.polyfill?void 0:"es2017",externalHelpers:!1,transform:{legacyDecorator:!0,decoratorMetadata:!0,react:{runtime:"automatic",throwIfNamespace:!0,refresh:m&&s,development:s,importSource:l},optimizer:{simplify:!1}},experimental:{emitAssertForImportAttributes:!0,cacheRoot:o.swcCachePath,plugins:[["swc-plugin-another-transform-imports",p],a&&["@moneko/jsx-dom-expressions",{...r.jsxDomExpressions,generate:t?"ssr":"dom",hydratable:t}]].filter(Boolean)}},env:r.polyfill?i:void 0,sourceMaps:!0,parseMap:!0},"function"==typeof r.swcrc?r.swcrc(s):r.swcrc||{}));
1
+ import{merge as e}from"webpack-merge";import{CONFIG as r}from"../config.mjs";import o from"../paths.mjs";import t from"../polyfills/polyfills.mjs";import{isDev as s,isReact as m,isSolid as a,jsxImportSource as l}from"../process-env.mjs";let p=function(e){for(let r=0,o=Object.keys(e),t=o.length;r<t;r++)e[o[r]].transform=`${o[r]}/${e[o[r]].transform}`,e[o[r]].style&&(e[o[r]].style=`${o[r]}/${e[o[r]].style}`);return e}(r.importOnDemand||{}),i={include:t(),mode:"entry",coreJs:"3.35"};export default(t=>e({module:{type:"es6",resolveFully:!0},jsc:{parser:{syntax:"typescript",tsx:!0,decorators:!0,dynamicImport:!0},loose:!0,target:r.polyfill?void 0:"es2017",externalHelpers:!1,transform:{legacyDecorator:!0,decoratorMetadata:!0,react:{runtime:"automatic",throwIfNamespace:!0,refresh:m&&s,development:s,importSource:l},optimizer:{simplify:!1}},experimental:{emitAssertForImportAttributes:!0,cacheRoot:o.swcCachePath,plugins:[["@moneko/transform-imports",p],a&&["@moneko/jsx-dom-expressions",{...r.jsxDomExpressions,generate:t?"ssr":"dom",hydratable:t}]].filter(Boolean)}},env:r.polyfill?i:void 0,sourceMaps:!0,parseMap:!0},"function"==typeof r.swcrc?r.swcrc(s):r.swcrc||{}));
@@ -1 +1 @@
1
- function e(...t){let o=t.length,r=Array(o);for(let e=0;e<o;e++)r[e]=t[e];for(;this.firstChild;)this.removeChild(this.firstChild);for(let e=0,t=r.length;e<t;e++){let t=r[e];this.appendChild("string"==typeof t?document.createTextNode(t):t)}}Element.prototype.replaceChildren||(Element.prototype.replaceChildren=e),ShadowRoot.prototype.replaceChildren||(ShadowRoot.prototype.replaceChildren=e);
1
+ function e(...t){let o=t.length,r=Array.from({length:o});for(let e=0;e<o;e++)r[e]=t[e];for(;this.firstChild;)this.removeChild(this.firstChild);for(let e=0,t=r.length;e<t;e++){let t=r[e];this.appendChild("string"==typeof t?document.createTextNode(t):t)}}Element.prototype.replaceChildren||(Element.prototype.replaceChildren=e),ShadowRoot.prototype.replaceChildren||(ShadowRoot.prototype.replaceChildren=e);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moneko/core",
3
- "version": "3.9.21",
3
+ "version": "3.10.0-beta.0",
4
4
  "description": "core",
5
5
  "main": "lib/index.mjs",
6
6
  "type": "module",
@@ -16,27 +16,27 @@
16
16
  "license": "MIT",
17
17
  "dependencies": {
18
18
  "@moneko/mdx": "0.1.26",
19
- "@swc/core": "1.3.102",
19
+ "@moneko/transform-imports": "0.3.0",
20
+ "@swc/core": "1.3.106",
20
21
  "add-asset-html-webpack-plugin": "6.0.0",
21
22
  "chokidar": "3.5.3",
22
- "core-js": "3.35.0",
23
- "core-js-compat": "3.35.0",
23
+ "core-js": "3.35.1",
24
+ "core-js-compat": "3.35.1",
24
25
  "cross-env": "7.0.3",
25
- "css-loader": "6.8.1",
26
+ "css-loader": "6.9.1",
26
27
  "express": "4.18.2",
27
28
  "html-webpack-plugin": "5.6.0",
28
29
  "http-proxy-middleware": "2.0.6",
29
30
  "less": "4.2.0",
30
- "less-loader": "11.1.4",
31
- "lightningcss": "1.22.1",
32
- "mini-css-extract-plugin": "2.7.6",
31
+ "less-loader": "12.1.0",
32
+ "lightningcss": "1.23.0",
33
+ "mini-css-extract-plugin": "2.7.7",
33
34
  "mock-json-schema": "1.1.1",
34
35
  "multer": "1.4.5-lts.1",
35
- "style-loader": "3.3.3",
36
+ "style-loader": "3.3.4",
36
37
  "swc-loader": "0.2.3",
37
- "swc-plugin-another-transform-imports": "0.2.7",
38
38
  "typescript": "5.3.3",
39
- "webpack": "5.89.0",
39
+ "webpack": "5.90.0",
40
40
  "webpack-bundle-analyzer": "4.10.1",
41
41
  "webpack-dev-middleware": "7.0.0",
42
42
  "webpack-hot-middleware": "2.26.0",
@@ -50,9 +50,9 @@
50
50
  "@swc/cli": "0.1.63",
51
51
  "@types/express": "4.17.21",
52
52
  "@types/multer": "1.4.11",
53
- "oxlint": "0.1.2",
54
- "sass": "1.69.7",
55
- "sass-loader": "13.3.3"
53
+ "oxlint": "0.2.4",
54
+ "sass": "1.70.0",
55
+ "sass-loader": "14.0.0"
56
56
  },
57
57
  "files": [
58
58
  "lib",