elit 3.0.6 → 3.0.7

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.
@@ -1 +1 @@
1
- {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../src/build.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAKH,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AA2EzD,wBAAsB,KAAK,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,WAAW,CAAC,CA+OvE;AAUD,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../src/build.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAKH,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AA2EzD,wBAAsB,KAAK,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,WAAW,CAAC,CAiPvE;AAUD,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC"}
package/dist/build.js CHANGED
@@ -548,6 +548,8 @@ async function build(options) {
548
548
  define,
549
549
  logLevel: config.logging ? "info" : "silent",
550
550
  metafile: true,
551
+ // Prioritize browser field for browser builds
552
+ mainFields: platform === "browser" ? ["browser", "module", "main"] : ["module", "main"],
551
553
  // Additional optimizations
552
554
  ...getMinifyOptions(config.minify)
553
555
  });
package/dist/build.mjs CHANGED
@@ -520,6 +520,8 @@ async function build(options) {
520
520
  define,
521
521
  logLevel: config.logging ? "info" : "silent",
522
522
  metafile: true,
523
+ // Prioritize browser field for browser builds
524
+ mainFields: platform === "browser" ? ["browser", "module", "main"] : ["module", "main"],
523
525
  // Additional optimizations
524
526
  ...getMinifyOptions(config.minify)
525
527
  });
package/dist/cli.js CHANGED
@@ -4131,6 +4131,8 @@ async function build(options) {
4131
4131
  define,
4132
4132
  logLevel: config.logging ? "info" : "silent",
4133
4133
  metafile: true,
4134
+ // Prioritize browser field for browser builds
4135
+ mainFields: platform === "browser" ? ["browser", "module", "main"] : ["module", "main"],
4134
4136
  // Additional optimizations
4135
4137
  ...getMinifyOptions(config.minify)
4136
4138
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "elit",
3
- "version": "3.0.6",
3
+ "version": "3.0.7",
4
4
  "description": "Optimized lightweight library for creating DOM elements with reactive state",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
package/src/build.ts CHANGED
@@ -183,6 +183,8 @@ export async function build(options: BuildOptions): Promise<BuildResult> {
183
183
  define,
184
184
  logLevel: config.logging ? 'info' : 'silent',
185
185
  metafile: true,
186
+ // Prioritize browser field for browser builds
187
+ mainFields: platform === 'browser' ? ['browser', 'module', 'main'] : ['module', 'main'],
186
188
  // Additional optimizations
187
189
  ...getMinifyOptions(config.minify)
188
190
  });