elit 3.1.9 → 3.2.1

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/cli.js CHANGED
@@ -1435,7 +1435,7 @@ var require_package = __commonJS({
1435
1435
  "package.json"(exports2, module2) {
1436
1436
  module2.exports = {
1437
1437
  name: "elit",
1438
- version: "3.1.9",
1438
+ version: "3.2.1",
1439
1439
  description: "Optimized lightweight library for creating DOM elements with reactive state",
1440
1440
  main: "dist/index.js",
1441
1441
  module: "dist/index.mjs",
@@ -1710,9 +1710,43 @@ async function loadConfigFile(configPath) {
1710
1710
  outfile: tempFile,
1711
1711
  write: true,
1712
1712
  target: "es2020",
1713
- // Bundle everything including elit/* so config can use elit modules
1714
- // Only mark Node.js built-ins as external
1715
- external: ["node:*"],
1713
+ // Don't bundle any dependencies, only bundle the config file itself
1714
+ packages: "external",
1715
+ // Mark all Node.js built-ins as external
1716
+ external: [
1717
+ "fs",
1718
+ "path",
1719
+ "os",
1720
+ "crypto",
1721
+ "http",
1722
+ "https",
1723
+ "stream",
1724
+ "util",
1725
+ "url",
1726
+ "querystring",
1727
+ "events",
1728
+ "buffer",
1729
+ "child_process",
1730
+ "cluster",
1731
+ "dgram",
1732
+ "dns",
1733
+ "net",
1734
+ "tls",
1735
+ "worker_threads",
1736
+ "zlib",
1737
+ "readline",
1738
+ "repl",
1739
+ "vm",
1740
+ "assert",
1741
+ "console",
1742
+ "timers",
1743
+ "async_hooks",
1744
+ "perf_hooks",
1745
+ "module",
1746
+ "process",
1747
+ "v8",
1748
+ "inspector"
1749
+ ],
1716
1750
  // Use the config directory as the working directory for resolution
1717
1751
  absWorkingDir: configDir
1718
1752
  });
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AA2C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AAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAoCzG;AAED;;GAEG;AACH,wBAAsB,UAAU,CAAC,GAAG,GAAE,MAAsB,GAAG,OAAO,CAAC,UAAU,GAAG,IAAI,CAAC,CAgBxF;AA8DD;;GAEG;AACH,wBAAgB,WAAW,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACrD,MAAM,EAAE,CAAC,GAAG,SAAS,EACrB,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,GACpB,CAAC,CAWH"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "elit",
3
- "version": "3.1.9",
3
+ "version": "3.2.1",
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/config.ts CHANGED
@@ -152,6 +152,7 @@ async function loadConfigFile(configPath: string): Promise<ElitConfig> {
152
152
 
153
153
  // Bundle the TypeScript config with proper path resolution
154
154
  const configDir = dirname(configPath);
155
+
155
156
  await build({
156
157
  entryPoints: [configPath],
157
158
  bundle: true,
@@ -160,9 +161,16 @@ async function loadConfigFile(configPath: string): Promise<ElitConfig> {
160
161
  outfile: tempFile,
161
162
  write: true,
162
163
  target: 'es2020',
163
- // Bundle everything including elit/* so config can use elit modules
164
- // Only mark Node.js built-ins as external
165
- external: ['node:*'],
164
+ // Don't bundle any dependencies, only bundle the config file itself
165
+ packages: 'external',
166
+ // Mark all Node.js built-ins as external
167
+ external: [
168
+ 'fs', 'path', 'os', 'crypto', 'http', 'https', 'stream', 'util',
169
+ 'url', 'querystring', 'events', 'buffer', 'child_process', 'cluster',
170
+ 'dgram', 'dns', 'net', 'tls', 'worker_threads', 'zlib', 'readline',
171
+ 'repl', 'vm', 'assert', 'console', 'timers', 'async_hooks', 'perf_hooks',
172
+ 'module', 'process', 'v8', 'inspector'
173
+ ],
166
174
  // Use the config directory as the working directory for resolution
167
175
  absWorkingDir: configDir,
168
176
  });