@esmx/core 3.0.0-rc.52 → 3.0.0-rc.54
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/package.json +3 -3
- package/src/module-config.ts +0 -4
package/package.json
CHANGED
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"build": "unbuild"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@esmx/import": "3.0.0-rc.
|
|
62
|
+
"@esmx/import": "3.0.0-rc.54",
|
|
63
63
|
"@types/serialize-javascript": "^5.0.4",
|
|
64
64
|
"es-module-lexer": "^1.7.0",
|
|
65
65
|
"find": "^0.3.0",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"unbuild": "3.5.0",
|
|
78
78
|
"vitest": "3.2.4"
|
|
79
79
|
},
|
|
80
|
-
"version": "3.0.0-rc.
|
|
80
|
+
"version": "3.0.0-rc.54",
|
|
81
81
|
"type": "module",
|
|
82
82
|
"private": false,
|
|
83
83
|
"exports": {
|
|
@@ -100,5 +100,5 @@
|
|
|
100
100
|
"template",
|
|
101
101
|
"public"
|
|
102
102
|
],
|
|
103
|
-
"gitHead": "
|
|
103
|
+
"gitHead": "85a92c42adcbbcbf0c0b75024e32ba8fcb1e17ca"
|
|
104
104
|
}
|
package/src/module-config.ts
CHANGED
|
@@ -256,7 +256,6 @@ function getLinks(name: string, root: string, config: ModuleConfig) {
|
|
|
256
256
|
function getExports(config: ModuleConfig = {}) {
|
|
257
257
|
const result: ParsedModuleConfig['exports'] = {};
|
|
258
258
|
|
|
259
|
-
// Default exports added automatically for every module
|
|
260
259
|
const exports: Record<string, ModuleConfigExportObject | string> = {
|
|
261
260
|
'src/entry.client': {
|
|
262
261
|
inputTarget: {
|
|
@@ -273,13 +272,11 @@ function getExports(config: ModuleConfig = {}) {
|
|
|
273
272
|
};
|
|
274
273
|
|
|
275
274
|
if (Array.isArray(config.exports)) {
|
|
276
|
-
// Regular expression to match supported file extensions
|
|
277
275
|
const FILE_EXT_REGEX =
|
|
278
276
|
/\.(js|mjs|cjs|jsx|mjsx|cjsx|ts|mts|cts|tsx|mtsx|ctsx)$/i;
|
|
279
277
|
|
|
280
278
|
config.exports.forEach((item) => {
|
|
281
279
|
if (typeof item === 'string') {
|
|
282
|
-
// Process prefix syntactic sugar
|
|
283
280
|
if (item.startsWith(PREFIX.npm)) {
|
|
284
281
|
// npm: prefix - export npm package, maintain original import paths
|
|
285
282
|
item = item.substring(PREFIX.npm.length);
|
|
@@ -308,7 +305,6 @@ function getExports(config: ModuleConfig = {}) {
|
|
|
308
305
|
Object.assign(exports, config.exports);
|
|
309
306
|
}
|
|
310
307
|
|
|
311
|
-
// Normalize all export configurations
|
|
312
308
|
for (const [name, value] of Object.entries(exports)) {
|
|
313
309
|
const opts =
|
|
314
310
|
typeof value === 'string'
|