@esmx/core 3.0.0-rc.80 → 3.0.0-rc.82
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/dist/module-config.d.ts
CHANGED
package/dist/module-config.mjs
CHANGED
|
@@ -144,7 +144,7 @@ export function processExportArray(exportArray, env) {
|
|
|
144
144
|
return exports;
|
|
145
145
|
}
|
|
146
146
|
export function getEnvironmentExports(config, env) {
|
|
147
|
-
const exports = createDefaultExports(env);
|
|
147
|
+
const exports = config.lib ? {} : createDefaultExports(env);
|
|
148
148
|
if (config.exports) {
|
|
149
149
|
const userExports = processExportArray(config.exports, env);
|
|
150
150
|
Object.assign(exports, userExports);
|
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.82",
|
|
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.6.1",
|
|
78
78
|
"vitest": "3.2.4"
|
|
79
79
|
},
|
|
80
|
-
"version": "3.0.0-rc.
|
|
80
|
+
"version": "3.0.0-rc.82",
|
|
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": "8dd1d8bca1d37902915fef48c1949dba3c1afcf8"
|
|
104
104
|
}
|
package/src/module-config.ts
CHANGED
|
@@ -2,6 +2,7 @@ import path from 'node:path';
|
|
|
2
2
|
import type { BuildEnvironment } from './core';
|
|
3
3
|
|
|
4
4
|
export interface ModuleConfig {
|
|
5
|
+
lib?: boolean;
|
|
5
6
|
links?: Record<string, string>;
|
|
6
7
|
imports?: ModuleConfigImportMapping;
|
|
7
8
|
scopes?: Record<string, ModuleConfigImportMapping>;
|
|
@@ -262,7 +263,7 @@ export function getEnvironmentExports(
|
|
|
262
263
|
config: ModuleConfig,
|
|
263
264
|
env: BuildEnvironment
|
|
264
265
|
): ParsedModuleConfigExports {
|
|
265
|
-
const exports = createDefaultExports(env);
|
|
266
|
+
const exports = config.lib ? {} : createDefaultExports(env);
|
|
266
267
|
|
|
267
268
|
if (config.exports) {
|
|
268
269
|
const userExports = processExportArray(config.exports, env);
|