@moneko/core 3.18.5-beta.0 → 3.18.5-beta.2
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/options/swcrc.mjs +1 -1
- package/package.json +4 -2
package/lib/options/swcrc.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{merge as e}from"webpack-merge";import{CONFIG as r}from"../config.mjs";import o from"../paths.mjs";import t,{coreJsVersion as s}from"../polyfills/polyfills.mjs";import{isDev as m,
|
|
1
|
+
import{merge as e}from"webpack-merge";import{CONFIG as r}from"../config.mjs";import o from"../paths.mjs";import t,{coreJsVersion as s}from"../polyfills/polyfills.mjs";import{isDev as m,isSolid as a,jsxImportSource as l}from"../process-env.mjs";import p from"./reslove.mjs";let i=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||{}),c={include:t(),mode:"entry",coreJs:s};export default((t,s={})=>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,development:m,importSource:l},optimizer:{simplify:!1}},experimental:{emitAssertForImportAttributes:!0,cacheRoot:o.swcCachePath,plugins:[[p.transformImports,i],a&&[p.jsxDomExpressions,{...r.jsxDomExpressions,generate:t?"ssr":"dom",hydratable:t}]].filter(Boolean)}},env:r.polyfill?c:void 0,sourceMaps:!0,parseMap:!0},"function"==typeof r.swcrc?r.swcrc(m):r.swcrc||{},s));
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moneko/core",
|
|
3
|
-
"version": "3.18.5-beta.
|
|
3
|
+
"version": "3.18.5-beta.2",
|
|
4
4
|
"description": "core",
|
|
5
5
|
"main": "lib/index.mjs",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"build": "rm -rf ./lib && tsc && swc src -d lib --strip-leading-paths -D && node convert"
|
|
8
|
+
"build": "rm -rf ./lib && tsc && swc src -d lib --strip-leading-paths -D && node convert",
|
|
9
|
+
"prepublishOnly": "npm run build"
|
|
9
10
|
},
|
|
10
11
|
"keywords": [],
|
|
11
12
|
"author": "moneko",
|
|
@@ -54,6 +55,7 @@
|
|
|
54
55
|
"@types/multer": "1.4.11",
|
|
55
56
|
"@types/webpack-bundle-analyzer": "4.7.0",
|
|
56
57
|
"@types/webpack-hot-middleware": "2.25.9",
|
|
58
|
+
"babel-plugin-react-compiler": "0.0.0-experimental-696af53-20240625",
|
|
57
59
|
"enhanced-resolve": "5.17.0",
|
|
58
60
|
"sass": "1.77.6",
|
|
59
61
|
"sass-loader": "14.2.1",
|