@esmx/core 3.0.0-rc.52 → 3.0.0-rc.53

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 CHANGED
@@ -59,7 +59,7 @@
59
59
  "build": "unbuild"
60
60
  },
61
61
  "dependencies": {
62
- "@esmx/import": "3.0.0-rc.52",
62
+ "@esmx/import": "3.0.0-rc.53",
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.52",
80
+ "version": "3.0.0-rc.53",
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": "6cb46d99223f82c65b7913514950497ce34860ae"
103
+ "gitHead": "e76fe45c0af262d52944c038f04e62b3b0fca3f7"
104
104
  }
@@ -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'