@moneko/core 3.10.0-beta.6 → 3.10.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/options/swcrc.mjs +1 -1
- package/package.json +6 -6
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 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:[["
|
|
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||{}));
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moneko/core",
|
|
3
|
-
"version": "3.10.0
|
|
3
|
+
"version": "3.10.0",
|
|
4
4
|
"description": "core",
|
|
5
5
|
"main": "lib/index.mjs",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"prebuild": "oxlint -c ./eslintrc.json -D correctness -D restriction src",
|
|
9
|
-
"build": "rm -rf ./lib && tsc && swc src -d lib -D",
|
|
9
|
+
"build": "rm -rf ./lib && tsc && swc src -d lib --strip-leading-paths -D",
|
|
10
10
|
"postbuild": "npm run cjs && npm run mjs",
|
|
11
11
|
"cjs": "find ./lib/loader/ -type f -name \"*.js\" -execdir bash -c 'mv \"$1\" \"${1%.js}.cjs\"' _ {} \\;",
|
|
12
12
|
"mjs": "find ./lib/ -type f -name \"*.js\" -execdir bash -c 'mv \"$1\" \"${1%.js}.mjs\"' _ {} \\;"
|
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
"license": "MIT",
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@moneko/mdx": "0.1.26",
|
|
19
|
-
"@
|
|
19
|
+
"@moneko/transform-imports": "0.3.1",
|
|
20
|
+
"@swc/core": "1.3.107",
|
|
20
21
|
"add-asset-html-webpack-plugin": "6.0.0",
|
|
21
22
|
"chalk": "5.3.0",
|
|
22
23
|
"chokidar": "3.5.3",
|
|
@@ -35,7 +36,6 @@
|
|
|
35
36
|
"multer": "1.4.5-lts.1",
|
|
36
37
|
"style-loader": "3.3.4",
|
|
37
38
|
"swc-loader": "0.2.3",
|
|
38
|
-
"swc-plugin-another-transform-imports": "0.2.7",
|
|
39
39
|
"typescript": "5.3.3",
|
|
40
40
|
"webpack": "5.90.0",
|
|
41
41
|
"webpack-bundle-analyzer": "4.10.1",
|
|
@@ -47,10 +47,10 @@
|
|
|
47
47
|
"xml2js": "0.6.2"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@swc/cli": "0.
|
|
50
|
+
"@swc/cli": "0.3.5",
|
|
51
51
|
"@types/express": "4.17.21",
|
|
52
52
|
"@types/multer": "1.4.11",
|
|
53
|
-
"oxlint": "0.2.
|
|
53
|
+
"oxlint": "0.2.6",
|
|
54
54
|
"sass": "1.70.0",
|
|
55
55
|
"sass-loader": "14.0.0"
|
|
56
56
|
},
|