@zeus-js/bundler-plugin 0.1.0-beta.6 → 0.1.0-beta.8

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,5 +1,5 @@
1
1
  /**
2
- * bundler-plugin v0.1.0-beta.6
2
+ * bundler-plugin v0.1.0-beta.8
3
3
  * (c) 2026 baicie
4
4
  * Released under the MIT License.
5
5
  **/
@@ -34,12 +34,12 @@ node_fs = __toESM(node_fs, 1);
34
34
  let node_path = require("node:path");
35
35
  node_path = __toESM(node_path, 1);
36
36
  let _zeus_js_component_analyzer = require("@zeus-js/component-analyzer");
37
- let fast_glob = require("fast-glob");
38
- fast_glob = __toESM(fast_glob, 1);
39
37
  let picomatch = require("picomatch");
40
38
  picomatch = __toESM(picomatch, 1);
41
39
  let node_fs_promises = require("node:fs/promises");
42
40
  node_fs_promises = __toESM(node_fs_promises, 1);
41
+ let fast_glob = require("fast-glob");
42
+ fast_glob = __toESM(fast_glob, 1);
43
43
  let _babel_core = require("@babel/core");
44
44
  let _babel_plugin_transform_typescript = require("@babel/plugin-transform-typescript");
45
45
  _babel_plugin_transform_typescript = __toESM(_babel_plugin_transform_typescript, 1);
@@ -459,7 +459,7 @@ function createZeusBundlerPlugin(options = {}, createOptions) {
459
459
  exclude: componentExclude
460
460
  });
461
461
  const manifestResult = await createManifest(root, componentInclude, componentExclude);
462
- for (const file of await collectWatchFiles(root, componentInclude, componentExclude)) this.addWatchFile(file);
462
+ for (const file of manifestResult.dependencies) this.addWatchFile(file);
463
463
  const diagnostics = manifestResult.diagnostics;
464
464
  for (const diagnostic of diagnostics) {
465
465
  const message = formatDiagnostic(diagnostic);
@@ -591,22 +591,15 @@ async function createManifest(root, include, exclude) {
591
591
  version: 1,
592
592
  components: []
593
593
  },
594
- diagnostics: []
594
+ diagnostics: [],
595
+ dependencies: []
595
596
  };
596
- return await (0, _zeus_js_component_analyzer.analyzeComponents)({
597
+ return await (0, _zeus_js_component_analyzer.analyzeComponentsWithDependencies)({
597
598
  root,
598
599
  include,
599
600
  exclude
600
601
  });
601
602
  }
602
- async function collectWatchFiles(root, include, exclude) {
603
- if (!include.length) return [];
604
- return await (0, fast_glob.default)(include, {
605
- cwd: root,
606
- absolute: true,
607
- ignore: exclude
608
- });
609
- }
610
603
  function resolveTsLikeImport(id, importer, options) {
611
604
  var _options$extensions;
612
605
  if (!importer) return null;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * bundler-plugin v0.1.0-beta.6
2
+ * bundler-plugin v0.1.0-beta.8
3
3
  * (c) 2026 baicie
4
4
  * Released under the MIT License.
5
5
  **/
@@ -34,12 +34,12 @@ node_fs = __toESM(node_fs, 1);
34
34
  let node_path = require("node:path");
35
35
  node_path = __toESM(node_path, 1);
36
36
  let _zeus_js_component_analyzer = require("@zeus-js/component-analyzer");
37
- let fast_glob = require("fast-glob");
38
- fast_glob = __toESM(fast_glob, 1);
39
37
  let picomatch = require("picomatch");
40
38
  picomatch = __toESM(picomatch, 1);
41
39
  let node_fs_promises = require("node:fs/promises");
42
40
  node_fs_promises = __toESM(node_fs_promises, 1);
41
+ let fast_glob = require("fast-glob");
42
+ fast_glob = __toESM(fast_glob, 1);
43
43
  let _babel_core = require("@babel/core");
44
44
  let _babel_plugin_transform_typescript = require("@babel/plugin-transform-typescript");
45
45
  _babel_plugin_transform_typescript = __toESM(_babel_plugin_transform_typescript, 1);
@@ -459,7 +459,7 @@ function createZeusBundlerPlugin(options = {}, createOptions) {
459
459
  exclude: componentExclude
460
460
  });
461
461
  const manifestResult = await createManifest(root, componentInclude, componentExclude);
462
- for (const file of await collectWatchFiles(root, componentInclude, componentExclude)) this.addWatchFile(file);
462
+ for (const file of manifestResult.dependencies) this.addWatchFile(file);
463
463
  const diagnostics = manifestResult.diagnostics;
464
464
  for (const diagnostic of diagnostics) {
465
465
  const message = formatDiagnostic(diagnostic);
@@ -591,22 +591,15 @@ async function createManifest(root, include, exclude) {
591
591
  version: 1,
592
592
  components: []
593
593
  },
594
- diagnostics: []
594
+ diagnostics: [],
595
+ dependencies: []
595
596
  };
596
- return await (0, _zeus_js_component_analyzer.analyzeComponents)({
597
+ return await (0, _zeus_js_component_analyzer.analyzeComponentsWithDependencies)({
597
598
  root,
598
599
  include,
599
600
  exclude
600
601
  });
601
602
  }
602
- async function collectWatchFiles(root, include, exclude) {
603
- if (!include.length) return [];
604
- return await (0, fast_glob.default)(include, {
605
- cwd: root,
606
- absolute: true,
607
- ignore: exclude
608
- });
609
- }
610
603
  function resolveTsLikeImport(id, importer, options) {
611
604
  var _options$extensions;
612
605
  if (!importer) return null;
@@ -1,14 +1,14 @@
1
1
  /**
2
- * bundler-plugin v0.1.0-beta.6
2
+ * bundler-plugin v0.1.0-beta.8
3
3
  * (c) 2026 baicie
4
4
  * Released under the MIT License.
5
5
  **/
6
6
  import fs from "node:fs";
7
7
  import path from "node:path";
8
- import { analyzeComponents } from "@zeus-js/component-analyzer";
9
- import fg from "fast-glob";
8
+ import { analyzeComponentsWithDependencies } from "@zeus-js/component-analyzer";
10
9
  import picomatch from "picomatch";
11
10
  import fs$1 from "node:fs/promises";
11
+ import fg from "fast-glob";
12
12
  import { transformAsync } from "@babel/core";
13
13
  import transformTypeScript from "@babel/plugin-transform-typescript";
14
14
  import zeusCompiler from "@zeus-js/compiler";
@@ -545,7 +545,7 @@ function createZeusBundlerPlugin(options = {}, createOptions) {
545
545
  exclude: componentExclude
546
546
  });
547
547
  const manifestResult = yield createManifest(root, componentInclude, componentExclude);
548
- for (const file of yield collectWatchFiles(root, componentInclude, componentExclude)) _this.addWatchFile(file);
548
+ for (const file of manifestResult.dependencies) _this.addWatchFile(file);
549
549
  const diagnostics = manifestResult.diagnostics;
550
550
  for (const diagnostic of diagnostics) {
551
551
  const message = formatDiagnostic(diagnostic);
@@ -687,9 +687,10 @@ function _createManifest() {
687
687
  version: 1,
688
688
  components: []
689
689
  },
690
- diagnostics: []
690
+ diagnostics: [],
691
+ dependencies: []
691
692
  };
692
- return yield analyzeComponents({
693
+ return yield analyzeComponentsWithDependencies({
693
694
  root,
694
695
  include,
695
696
  exclude
@@ -697,20 +698,6 @@ function _createManifest() {
697
698
  });
698
699
  return _createManifest.apply(this, arguments);
699
700
  }
700
- function collectWatchFiles(_x4, _x5, _x6) {
701
- return _collectWatchFiles.apply(this, arguments);
702
- }
703
- function _collectWatchFiles() {
704
- _collectWatchFiles = _asyncToGenerator(function* (root, include, exclude) {
705
- if (!include.length) return [];
706
- return yield fg(include, {
707
- cwd: root,
708
- absolute: true,
709
- ignore: exclude
710
- });
711
- });
712
- return _collectWatchFiles.apply(this, arguments);
713
- }
714
701
  function resolveTsLikeImport(id, importer, options) {
715
702
  var _options$extensions;
716
703
  if (!importer) return null;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * bundler-plugin v0.1.0-beta.6
2
+ * bundler-plugin v0.1.0-beta.8
3
3
  * (c) 2026 baicie
4
4
  * Released under the MIT License.
5
5
  **/
@@ -1,5 +1,5 @@
1
1
  /**
2
- * bundler-plugin v0.1.0-beta.6
2
+ * bundler-plugin v0.1.0-beta.8
3
3
  * (c) 2026 baicie
4
4
  * Released under the MIT License.
5
5
  **/
@@ -1,5 +1,5 @@
1
1
  /**
2
- * bundler-plugin v0.1.0-beta.6
2
+ * bundler-plugin v0.1.0-beta.8
3
3
  * (c) 2026 baicie
4
4
  * Released under the MIT License.
5
5
  **/
@@ -1,5 +1,5 @@
1
1
  /**
2
- * bundler-plugin v0.1.0-beta.6
2
+ * bundler-plugin v0.1.0-beta.8
3
3
  * (c) 2026 baicie
4
4
  * Released under the MIT License.
5
5
  **/
@@ -1,5 +1,5 @@
1
1
  /**
2
- * bundler-plugin v0.1.0-beta.6
2
+ * bundler-plugin v0.1.0-beta.8
3
3
  * (c) 2026 baicie
4
4
  * Released under the MIT License.
5
5
  **/
@@ -34,12 +34,12 @@ node_fs = __toESM(node_fs, 1);
34
34
  let node_path = require("node:path");
35
35
  node_path = __toESM(node_path, 1);
36
36
  let _zeus_js_component_analyzer = require("@zeus-js/component-analyzer");
37
- let fast_glob = require("fast-glob");
38
- fast_glob = __toESM(fast_glob, 1);
39
37
  let picomatch = require("picomatch");
40
38
  picomatch = __toESM(picomatch, 1);
41
39
  let node_fs_promises = require("node:fs/promises");
42
40
  node_fs_promises = __toESM(node_fs_promises, 1);
41
+ let fast_glob = require("fast-glob");
42
+ fast_glob = __toESM(fast_glob, 1);
43
43
  let _babel_core = require("@babel/core");
44
44
  let _babel_plugin_transform_typescript = require("@babel/plugin-transform-typescript");
45
45
  _babel_plugin_transform_typescript = __toESM(_babel_plugin_transform_typescript, 1);
@@ -457,7 +457,7 @@ function createZeusBundlerPlugin(options = {}, createOptions) {
457
457
  exclude: componentExclude
458
458
  });
459
459
  const manifestResult = await createManifest(root, componentInclude, componentExclude);
460
- for (const file of await collectWatchFiles(root, componentInclude, componentExclude)) this.addWatchFile(file);
460
+ for (const file of manifestResult.dependencies) this.addWatchFile(file);
461
461
  const diagnostics = manifestResult.diagnostics;
462
462
  for (const diagnostic of diagnostics) {
463
463
  const message = formatDiagnostic(diagnostic);
@@ -589,22 +589,15 @@ async function createManifest(root, include, exclude) {
589
589
  version: 1,
590
590
  components: []
591
591
  },
592
- diagnostics: []
592
+ diagnostics: [],
593
+ dependencies: []
593
594
  };
594
- return await (0, _zeus_js_component_analyzer.analyzeComponents)({
595
+ return await (0, _zeus_js_component_analyzer.analyzeComponentsWithDependencies)({
595
596
  root,
596
597
  include,
597
598
  exclude
598
599
  });
599
600
  }
600
- async function collectWatchFiles(root, include, exclude) {
601
- if (!include.length) return [];
602
- return await (0, fast_glob.default)(include, {
603
- cwd: root,
604
- absolute: true,
605
- ignore: exclude
606
- });
607
- }
608
601
  function resolveTsLikeImport(id, importer, options) {
609
602
  var _options$extensions;
610
603
  if (!importer) return null;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * bundler-plugin v0.1.0-beta.6
2
+ * bundler-plugin v0.1.0-beta.8
3
3
  * (c) 2026 baicie
4
4
  * Released under the MIT License.
5
5
  **/
@@ -34,12 +34,12 @@ node_fs = __toESM(node_fs, 1);
34
34
  let node_path = require("node:path");
35
35
  node_path = __toESM(node_path, 1);
36
36
  let _zeus_js_component_analyzer = require("@zeus-js/component-analyzer");
37
- let fast_glob = require("fast-glob");
38
- fast_glob = __toESM(fast_glob, 1);
39
37
  let picomatch = require("picomatch");
40
38
  picomatch = __toESM(picomatch, 1);
41
39
  let node_fs_promises = require("node:fs/promises");
42
40
  node_fs_promises = __toESM(node_fs_promises, 1);
41
+ let fast_glob = require("fast-glob");
42
+ fast_glob = __toESM(fast_glob, 1);
43
43
  let _babel_core = require("@babel/core");
44
44
  let _babel_plugin_transform_typescript = require("@babel/plugin-transform-typescript");
45
45
  _babel_plugin_transform_typescript = __toESM(_babel_plugin_transform_typescript, 1);
@@ -457,7 +457,7 @@ function createZeusBundlerPlugin(options = {}, createOptions) {
457
457
  exclude: componentExclude
458
458
  });
459
459
  const manifestResult = await createManifest(root, componentInclude, componentExclude);
460
- for (const file of await collectWatchFiles(root, componentInclude, componentExclude)) this.addWatchFile(file);
460
+ for (const file of manifestResult.dependencies) this.addWatchFile(file);
461
461
  const diagnostics = manifestResult.diagnostics;
462
462
  for (const diagnostic of diagnostics) {
463
463
  const message = formatDiagnostic(diagnostic);
@@ -589,22 +589,15 @@ async function createManifest(root, include, exclude) {
589
589
  version: 1,
590
590
  components: []
591
591
  },
592
- diagnostics: []
592
+ diagnostics: [],
593
+ dependencies: []
593
594
  };
594
- return await (0, _zeus_js_component_analyzer.analyzeComponents)({
595
+ return await (0, _zeus_js_component_analyzer.analyzeComponentsWithDependencies)({
595
596
  root,
596
597
  include,
597
598
  exclude
598
599
  });
599
600
  }
600
- async function collectWatchFiles(root, include, exclude) {
601
- if (!include.length) return [];
602
- return await (0, fast_glob.default)(include, {
603
- cwd: root,
604
- absolute: true,
605
- ignore: exclude
606
- });
607
- }
608
601
  function resolveTsLikeImport(id, importer, options) {
609
602
  var _options$extensions;
610
603
  if (!importer) return null;
package/dist/rolldown.js CHANGED
@@ -1,14 +1,14 @@
1
1
  /**
2
- * bundler-plugin v0.1.0-beta.6
2
+ * bundler-plugin v0.1.0-beta.8
3
3
  * (c) 2026 baicie
4
4
  * Released under the MIT License.
5
5
  **/
6
6
  import fs from "node:fs";
7
7
  import path from "node:path";
8
- import { analyzeComponents } from "@zeus-js/component-analyzer";
9
- import fg from "fast-glob";
8
+ import { analyzeComponentsWithDependencies } from "@zeus-js/component-analyzer";
10
9
  import picomatch from "picomatch";
11
10
  import fs$1 from "node:fs/promises";
11
+ import fg from "fast-glob";
12
12
  import { transformAsync } from "@babel/core";
13
13
  import transformTypeScript from "@babel/plugin-transform-typescript";
14
14
  import zeusCompiler from "@zeus-js/compiler";
@@ -543,7 +543,7 @@ function createZeusBundlerPlugin(options = {}, createOptions) {
543
543
  exclude: componentExclude
544
544
  });
545
545
  const manifestResult = yield createManifest(root, componentInclude, componentExclude);
546
- for (const file of yield collectWatchFiles(root, componentInclude, componentExclude)) _this.addWatchFile(file);
546
+ for (const file of manifestResult.dependencies) _this.addWatchFile(file);
547
547
  const diagnostics = manifestResult.diagnostics;
548
548
  for (const diagnostic of diagnostics) {
549
549
  const message = formatDiagnostic(diagnostic);
@@ -685,9 +685,10 @@ function _createManifest() {
685
685
  version: 1,
686
686
  components: []
687
687
  },
688
- diagnostics: []
688
+ diagnostics: [],
689
+ dependencies: []
689
690
  };
690
- return yield analyzeComponents({
691
+ return yield analyzeComponentsWithDependencies({
691
692
  root,
692
693
  include,
693
694
  exclude
@@ -695,20 +696,6 @@ function _createManifest() {
695
696
  });
696
697
  return _createManifest.apply(this, arguments);
697
698
  }
698
- function collectWatchFiles(_x4, _x5, _x6) {
699
- return _collectWatchFiles.apply(this, arguments);
700
- }
701
- function _collectWatchFiles() {
702
- _collectWatchFiles = _asyncToGenerator(function* (root, include, exclude) {
703
- if (!include.length) return [];
704
- return yield fg(include, {
705
- cwd: root,
706
- absolute: true,
707
- ignore: exclude
708
- });
709
- });
710
- return _collectWatchFiles.apply(this, arguments);
711
- }
712
699
  function resolveTsLikeImport(id, importer, options) {
713
700
  var _options$extensions;
714
701
  if (!importer) return null;
@@ -1,14 +1,14 @@
1
1
  /**
2
- * bundler-plugin v0.1.0-beta.6
2
+ * bundler-plugin v0.1.0-beta.8
3
3
  * (c) 2026 baicie
4
4
  * Released under the MIT License.
5
5
  **/
6
6
  import fs from "node:fs";
7
7
  import path from "node:path";
8
- import { analyzeComponents } from "@zeus-js/component-analyzer";
9
- import fg from "fast-glob";
8
+ import { analyzeComponentsWithDependencies } from "@zeus-js/component-analyzer";
10
9
  import picomatch from "picomatch";
11
10
  import fs$1 from "node:fs/promises";
11
+ import fg from "fast-glob";
12
12
  import { transformAsync } from "@babel/core";
13
13
  import transformTypeScript from "@babel/plugin-transform-typescript";
14
14
  import zeusCompiler from "@zeus-js/compiler";
@@ -543,7 +543,7 @@ function createZeusBundlerPlugin(options = {}, createOptions) {
543
543
  exclude: componentExclude
544
544
  });
545
545
  const manifestResult = yield createManifest(root, componentInclude, componentExclude);
546
- for (const file of yield collectWatchFiles(root, componentInclude, componentExclude)) _this.addWatchFile(file);
546
+ for (const file of manifestResult.dependencies) _this.addWatchFile(file);
547
547
  const diagnostics = manifestResult.diagnostics;
548
548
  for (const diagnostic of diagnostics) {
549
549
  const message = formatDiagnostic(diagnostic);
@@ -685,9 +685,10 @@ function _createManifest() {
685
685
  version: 1,
686
686
  components: []
687
687
  },
688
- diagnostics: []
688
+ diagnostics: [],
689
+ dependencies: []
689
690
  };
690
- return yield analyzeComponents({
691
+ return yield analyzeComponentsWithDependencies({
691
692
  root,
692
693
  include,
693
694
  exclude
@@ -695,20 +696,6 @@ function _createManifest() {
695
696
  });
696
697
  return _createManifest.apply(this, arguments);
697
698
  }
698
- function collectWatchFiles(_x4, _x5, _x6) {
699
- return _collectWatchFiles.apply(this, arguments);
700
- }
701
- function _collectWatchFiles() {
702
- _collectWatchFiles = _asyncToGenerator(function* (root, include, exclude) {
703
- if (!include.length) return [];
704
- return yield fg(include, {
705
- cwd: root,
706
- absolute: true,
707
- ignore: exclude
708
- });
709
- });
710
- return _collectWatchFiles.apply(this, arguments);
711
- }
712
699
  function resolveTsLikeImport(id, importer, options) {
713
700
  var _options$extensions;
714
701
  if (!importer) return null;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * bundler-plugin v0.1.0-beta.6
2
+ * bundler-plugin v0.1.0-beta.8
3
3
  * (c) 2026 baicie
4
4
  * Released under the MIT License.
5
5
  **/
@@ -34,12 +34,12 @@ node_fs = __toESM(node_fs, 1);
34
34
  let node_path = require("node:path");
35
35
  node_path = __toESM(node_path, 1);
36
36
  let _zeus_js_component_analyzer = require("@zeus-js/component-analyzer");
37
- let fast_glob = require("fast-glob");
38
- fast_glob = __toESM(fast_glob, 1);
39
37
  let picomatch = require("picomatch");
40
38
  picomatch = __toESM(picomatch, 1);
41
39
  let node_fs_promises = require("node:fs/promises");
42
40
  node_fs_promises = __toESM(node_fs_promises, 1);
41
+ let fast_glob = require("fast-glob");
42
+ fast_glob = __toESM(fast_glob, 1);
43
43
  let _babel_core = require("@babel/core");
44
44
  let _babel_plugin_transform_typescript = require("@babel/plugin-transform-typescript");
45
45
  _babel_plugin_transform_typescript = __toESM(_babel_plugin_transform_typescript, 1);
@@ -457,7 +457,7 @@ function createZeusBundlerPlugin(options = {}, createOptions) {
457
457
  exclude: componentExclude
458
458
  });
459
459
  const manifestResult = await createManifest(root, componentInclude, componentExclude);
460
- for (const file of await collectWatchFiles(root, componentInclude, componentExclude)) this.addWatchFile(file);
460
+ for (const file of manifestResult.dependencies) this.addWatchFile(file);
461
461
  const diagnostics = manifestResult.diagnostics;
462
462
  for (const diagnostic of diagnostics) {
463
463
  const message = formatDiagnostic(diagnostic);
@@ -589,22 +589,15 @@ async function createManifest(root, include, exclude) {
589
589
  version: 1,
590
590
  components: []
591
591
  },
592
- diagnostics: []
592
+ diagnostics: [],
593
+ dependencies: []
593
594
  };
594
- return await (0, _zeus_js_component_analyzer.analyzeComponents)({
595
+ return await (0, _zeus_js_component_analyzer.analyzeComponentsWithDependencies)({
595
596
  root,
596
597
  include,
597
598
  exclude
598
599
  });
599
600
  }
600
- async function collectWatchFiles(root, include, exclude) {
601
- if (!include.length) return [];
602
- return await (0, fast_glob.default)(include, {
603
- cwd: root,
604
- absolute: true,
605
- ignore: exclude
606
- });
607
- }
608
601
  function resolveTsLikeImport(id, importer, options) {
609
602
  var _options$extensions;
610
603
  if (!importer) return null;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * bundler-plugin v0.1.0-beta.6
2
+ * bundler-plugin v0.1.0-beta.8
3
3
  * (c) 2026 baicie
4
4
  * Released under the MIT License.
5
5
  **/
@@ -34,12 +34,12 @@ node_fs = __toESM(node_fs, 1);
34
34
  let node_path = require("node:path");
35
35
  node_path = __toESM(node_path, 1);
36
36
  let _zeus_js_component_analyzer = require("@zeus-js/component-analyzer");
37
- let fast_glob = require("fast-glob");
38
- fast_glob = __toESM(fast_glob, 1);
39
37
  let picomatch = require("picomatch");
40
38
  picomatch = __toESM(picomatch, 1);
41
39
  let node_fs_promises = require("node:fs/promises");
42
40
  node_fs_promises = __toESM(node_fs_promises, 1);
41
+ let fast_glob = require("fast-glob");
42
+ fast_glob = __toESM(fast_glob, 1);
43
43
  let _babel_core = require("@babel/core");
44
44
  let _babel_plugin_transform_typescript = require("@babel/plugin-transform-typescript");
45
45
  _babel_plugin_transform_typescript = __toESM(_babel_plugin_transform_typescript, 1);
@@ -457,7 +457,7 @@ function createZeusBundlerPlugin(options = {}, createOptions) {
457
457
  exclude: componentExclude
458
458
  });
459
459
  const manifestResult = await createManifest(root, componentInclude, componentExclude);
460
- for (const file of await collectWatchFiles(root, componentInclude, componentExclude)) this.addWatchFile(file);
460
+ for (const file of manifestResult.dependencies) this.addWatchFile(file);
461
461
  const diagnostics = manifestResult.diagnostics;
462
462
  for (const diagnostic of diagnostics) {
463
463
  const message = formatDiagnostic(diagnostic);
@@ -589,22 +589,15 @@ async function createManifest(root, include, exclude) {
589
589
  version: 1,
590
590
  components: []
591
591
  },
592
- diagnostics: []
592
+ diagnostics: [],
593
+ dependencies: []
593
594
  };
594
- return await (0, _zeus_js_component_analyzer.analyzeComponents)({
595
+ return await (0, _zeus_js_component_analyzer.analyzeComponentsWithDependencies)({
595
596
  root,
596
597
  include,
597
598
  exclude
598
599
  });
599
600
  }
600
- async function collectWatchFiles(root, include, exclude) {
601
- if (!include.length) return [];
602
- return await (0, fast_glob.default)(include, {
603
- cwd: root,
604
- absolute: true,
605
- ignore: exclude
606
- });
607
- }
608
601
  function resolveTsLikeImport(id, importer, options) {
609
602
  var _options$extensions;
610
603
  if (!importer) return null;
package/dist/rollup.js CHANGED
@@ -1,14 +1,14 @@
1
1
  /**
2
- * bundler-plugin v0.1.0-beta.6
2
+ * bundler-plugin v0.1.0-beta.8
3
3
  * (c) 2026 baicie
4
4
  * Released under the MIT License.
5
5
  **/
6
6
  import fs from "node:fs";
7
7
  import path from "node:path";
8
- import { analyzeComponents } from "@zeus-js/component-analyzer";
9
- import fg from "fast-glob";
8
+ import { analyzeComponentsWithDependencies } from "@zeus-js/component-analyzer";
10
9
  import picomatch from "picomatch";
11
10
  import fs$1 from "node:fs/promises";
11
+ import fg from "fast-glob";
12
12
  import { transformAsync } from "@babel/core";
13
13
  import transformTypeScript from "@babel/plugin-transform-typescript";
14
14
  import zeusCompiler from "@zeus-js/compiler";
@@ -543,7 +543,7 @@ function createZeusBundlerPlugin(options = {}, createOptions) {
543
543
  exclude: componentExclude
544
544
  });
545
545
  const manifestResult = yield createManifest(root, componentInclude, componentExclude);
546
- for (const file of yield collectWatchFiles(root, componentInclude, componentExclude)) _this.addWatchFile(file);
546
+ for (const file of manifestResult.dependencies) _this.addWatchFile(file);
547
547
  const diagnostics = manifestResult.diagnostics;
548
548
  for (const diagnostic of diagnostics) {
549
549
  const message = formatDiagnostic(diagnostic);
@@ -685,9 +685,10 @@ function _createManifest() {
685
685
  version: 1,
686
686
  components: []
687
687
  },
688
- diagnostics: []
688
+ diagnostics: [],
689
+ dependencies: []
689
690
  };
690
- return yield analyzeComponents({
691
+ return yield analyzeComponentsWithDependencies({
691
692
  root,
692
693
  include,
693
694
  exclude
@@ -695,20 +696,6 @@ function _createManifest() {
695
696
  });
696
697
  return _createManifest.apply(this, arguments);
697
698
  }
698
- function collectWatchFiles(_x4, _x5, _x6) {
699
- return _collectWatchFiles.apply(this, arguments);
700
- }
701
- function _collectWatchFiles() {
702
- _collectWatchFiles = _asyncToGenerator(function* (root, include, exclude) {
703
- if (!include.length) return [];
704
- return yield fg(include, {
705
- cwd: root,
706
- absolute: true,
707
- ignore: exclude
708
- });
709
- });
710
- return _collectWatchFiles.apply(this, arguments);
711
- }
712
699
  function resolveTsLikeImport(id, importer, options) {
713
700
  var _options$extensions;
714
701
  if (!importer) return null;
@@ -1,14 +1,14 @@
1
1
  /**
2
- * bundler-plugin v0.1.0-beta.6
2
+ * bundler-plugin v0.1.0-beta.8
3
3
  * (c) 2026 baicie
4
4
  * Released under the MIT License.
5
5
  **/
6
6
  import fs from "node:fs";
7
7
  import path from "node:path";
8
- import { analyzeComponents } from "@zeus-js/component-analyzer";
9
- import fg from "fast-glob";
8
+ import { analyzeComponentsWithDependencies } from "@zeus-js/component-analyzer";
10
9
  import picomatch from "picomatch";
11
10
  import fs$1 from "node:fs/promises";
11
+ import fg from "fast-glob";
12
12
  import { transformAsync } from "@babel/core";
13
13
  import transformTypeScript from "@babel/plugin-transform-typescript";
14
14
  import zeusCompiler from "@zeus-js/compiler";
@@ -543,7 +543,7 @@ function createZeusBundlerPlugin(options = {}, createOptions) {
543
543
  exclude: componentExclude
544
544
  });
545
545
  const manifestResult = yield createManifest(root, componentInclude, componentExclude);
546
- for (const file of yield collectWatchFiles(root, componentInclude, componentExclude)) _this.addWatchFile(file);
546
+ for (const file of manifestResult.dependencies) _this.addWatchFile(file);
547
547
  const diagnostics = manifestResult.diagnostics;
548
548
  for (const diagnostic of diagnostics) {
549
549
  const message = formatDiagnostic(diagnostic);
@@ -685,9 +685,10 @@ function _createManifest() {
685
685
  version: 1,
686
686
  components: []
687
687
  },
688
- diagnostics: []
688
+ diagnostics: [],
689
+ dependencies: []
689
690
  };
690
- return yield analyzeComponents({
691
+ return yield analyzeComponentsWithDependencies({
691
692
  root,
692
693
  include,
693
694
  exclude
@@ -695,20 +696,6 @@ function _createManifest() {
695
696
  });
696
697
  return _createManifest.apply(this, arguments);
697
698
  }
698
- function collectWatchFiles(_x4, _x5, _x6) {
699
- return _collectWatchFiles.apply(this, arguments);
700
- }
701
- function _collectWatchFiles() {
702
- _collectWatchFiles = _asyncToGenerator(function* (root, include, exclude) {
703
- if (!include.length) return [];
704
- return yield fg(include, {
705
- cwd: root,
706
- absolute: true,
707
- ignore: exclude
708
- });
709
- });
710
- return _collectWatchFiles.apply(this, arguments);
711
- }
712
699
  function resolveTsLikeImport(id, importer, options) {
713
700
  var _options$extensions;
714
701
  if (!importer) return null;
package/dist/vite.cjs.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * bundler-plugin v0.1.0-beta.6
2
+ * bundler-plugin v0.1.0-beta.8
3
3
  * (c) 2026 baicie
4
4
  * Released under the MIT License.
5
5
  **/
@@ -36,12 +36,12 @@ let vite = require("vite");
36
36
  let node_fs = require("node:fs");
37
37
  node_fs = __toESM(node_fs, 1);
38
38
  let _zeus_js_component_analyzer = require("@zeus-js/component-analyzer");
39
- let fast_glob = require("fast-glob");
40
- fast_glob = __toESM(fast_glob, 1);
41
39
  let picomatch = require("picomatch");
42
40
  picomatch = __toESM(picomatch, 1);
43
41
  let node_fs_promises = require("node:fs/promises");
44
42
  node_fs_promises = __toESM(node_fs_promises, 1);
43
+ let fast_glob = require("fast-glob");
44
+ fast_glob = __toESM(fast_glob, 1);
45
45
  let _babel_core = require("@babel/core");
46
46
  let _babel_plugin_transform_typescript = require("@babel/plugin-transform-typescript");
47
47
  _babel_plugin_transform_typescript = __toESM(_babel_plugin_transform_typescript, 1);
@@ -459,7 +459,7 @@ function createZeusBundlerPlugin(options = {}, createOptions) {
459
459
  exclude: componentExclude
460
460
  });
461
461
  const manifestResult = await createManifest(root, componentInclude, componentExclude);
462
- for (const file of await collectWatchFiles(root, componentInclude, componentExclude)) this.addWatchFile(file);
462
+ for (const file of manifestResult.dependencies) this.addWatchFile(file);
463
463
  const diagnostics = manifestResult.diagnostics;
464
464
  for (const diagnostic of diagnostics) {
465
465
  const message = formatDiagnostic(diagnostic);
@@ -591,22 +591,15 @@ async function createManifest(root, include, exclude) {
591
591
  version: 1,
592
592
  components: []
593
593
  },
594
- diagnostics: []
594
+ diagnostics: [],
595
+ dependencies: []
595
596
  };
596
- return await (0, _zeus_js_component_analyzer.analyzeComponents)({
597
+ return await (0, _zeus_js_component_analyzer.analyzeComponentsWithDependencies)({
597
598
  root,
598
599
  include,
599
600
  exclude
600
601
  });
601
602
  }
602
- async function collectWatchFiles(root, include, exclude) {
603
- if (!include.length) return [];
604
- return await (0, fast_glob.default)(include, {
605
- cwd: root,
606
- absolute: true,
607
- ignore: exclude
608
- });
609
- }
610
603
  function resolveTsLikeImport(id, importer, options) {
611
604
  var _options$extensions;
612
605
  if (!importer) return null;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * bundler-plugin v0.1.0-beta.6
2
+ * bundler-plugin v0.1.0-beta.8
3
3
  * (c) 2026 baicie
4
4
  * Released under the MIT License.
5
5
  **/
@@ -36,12 +36,12 @@ let vite = require("vite");
36
36
  let node_fs = require("node:fs");
37
37
  node_fs = __toESM(node_fs, 1);
38
38
  let _zeus_js_component_analyzer = require("@zeus-js/component-analyzer");
39
- let fast_glob = require("fast-glob");
40
- fast_glob = __toESM(fast_glob, 1);
41
39
  let picomatch = require("picomatch");
42
40
  picomatch = __toESM(picomatch, 1);
43
41
  let node_fs_promises = require("node:fs/promises");
44
42
  node_fs_promises = __toESM(node_fs_promises, 1);
43
+ let fast_glob = require("fast-glob");
44
+ fast_glob = __toESM(fast_glob, 1);
45
45
  let _babel_core = require("@babel/core");
46
46
  let _babel_plugin_transform_typescript = require("@babel/plugin-transform-typescript");
47
47
  _babel_plugin_transform_typescript = __toESM(_babel_plugin_transform_typescript, 1);
@@ -459,7 +459,7 @@ function createZeusBundlerPlugin(options = {}, createOptions) {
459
459
  exclude: componentExclude
460
460
  });
461
461
  const manifestResult = await createManifest(root, componentInclude, componentExclude);
462
- for (const file of await collectWatchFiles(root, componentInclude, componentExclude)) this.addWatchFile(file);
462
+ for (const file of manifestResult.dependencies) this.addWatchFile(file);
463
463
  const diagnostics = manifestResult.diagnostics;
464
464
  for (const diagnostic of diagnostics) {
465
465
  const message = formatDiagnostic(diagnostic);
@@ -591,22 +591,15 @@ async function createManifest(root, include, exclude) {
591
591
  version: 1,
592
592
  components: []
593
593
  },
594
- diagnostics: []
594
+ diagnostics: [],
595
+ dependencies: []
595
596
  };
596
- return await (0, _zeus_js_component_analyzer.analyzeComponents)({
597
+ return await (0, _zeus_js_component_analyzer.analyzeComponentsWithDependencies)({
597
598
  root,
598
599
  include,
599
600
  exclude
600
601
  });
601
602
  }
602
- async function collectWatchFiles(root, include, exclude) {
603
- if (!include.length) return [];
604
- return await (0, fast_glob.default)(include, {
605
- cwd: root,
606
- absolute: true,
607
- ignore: exclude
608
- });
609
- }
610
603
  function resolveTsLikeImport(id, importer, options) {
611
604
  var _options$extensions;
612
605
  if (!importer) return null;
package/dist/vite.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * bundler-plugin v0.1.0-beta.6
2
+ * bundler-plugin v0.1.0-beta.8
3
3
  * (c) 2026 baicie
4
4
  * Released under the MIT License.
5
5
  **/
@@ -7,10 +7,10 @@ import { createRequire } from "node:module";
7
7
  import path from "node:path";
8
8
  import { mergeConfig } from "vite";
9
9
  import fs from "node:fs";
10
- import { analyzeComponents } from "@zeus-js/component-analyzer";
11
- import fg from "fast-glob";
10
+ import { analyzeComponentsWithDependencies } from "@zeus-js/component-analyzer";
12
11
  import picomatch from "picomatch";
13
12
  import fs$1 from "node:fs/promises";
13
+ import fg from "fast-glob";
14
14
  import { transformAsync } from "@babel/core";
15
15
  import transformTypeScript from "@babel/plugin-transform-typescript";
16
16
  import zeusCompiler from "@zeus-js/compiler";
@@ -545,7 +545,7 @@ function createZeusBundlerPlugin(options = {}, createOptions) {
545
545
  exclude: componentExclude
546
546
  });
547
547
  const manifestResult = yield createManifest(root, componentInclude, componentExclude);
548
- for (const file of yield collectWatchFiles(root, componentInclude, componentExclude)) _this.addWatchFile(file);
548
+ for (const file of manifestResult.dependencies) _this.addWatchFile(file);
549
549
  const diagnostics = manifestResult.diagnostics;
550
550
  for (const diagnostic of diagnostics) {
551
551
  const message = formatDiagnostic(diagnostic);
@@ -687,9 +687,10 @@ function _createManifest() {
687
687
  version: 1,
688
688
  components: []
689
689
  },
690
- diagnostics: []
690
+ diagnostics: [],
691
+ dependencies: []
691
692
  };
692
- return yield analyzeComponents({
693
+ return yield analyzeComponentsWithDependencies({
693
694
  root,
694
695
  include,
695
696
  exclude
@@ -697,20 +698,6 @@ function _createManifest() {
697
698
  });
698
699
  return _createManifest.apply(this, arguments);
699
700
  }
700
- function collectWatchFiles(_x4, _x5, _x6) {
701
- return _collectWatchFiles.apply(this, arguments);
702
- }
703
- function _collectWatchFiles() {
704
- _collectWatchFiles = _asyncToGenerator(function* (root, include, exclude) {
705
- if (!include.length) return [];
706
- return yield fg(include, {
707
- cwd: root,
708
- absolute: true,
709
- ignore: exclude
710
- });
711
- });
712
- return _collectWatchFiles.apply(this, arguments);
713
- }
714
701
  function resolveTsLikeImport(id, importer, options) {
715
702
  var _options$extensions;
716
703
  if (!importer) return null;
package/dist/vite.prod.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * bundler-plugin v0.1.0-beta.6
2
+ * bundler-plugin v0.1.0-beta.8
3
3
  * (c) 2026 baicie
4
4
  * Released under the MIT License.
5
5
  **/
@@ -7,10 +7,10 @@ import { createRequire } from "node:module";
7
7
  import path from "node:path";
8
8
  import { mergeConfig } from "vite";
9
9
  import fs from "node:fs";
10
- import { analyzeComponents } from "@zeus-js/component-analyzer";
11
- import fg from "fast-glob";
10
+ import { analyzeComponentsWithDependencies } from "@zeus-js/component-analyzer";
12
11
  import picomatch from "picomatch";
13
12
  import fs$1 from "node:fs/promises";
13
+ import fg from "fast-glob";
14
14
  import { transformAsync } from "@babel/core";
15
15
  import transformTypeScript from "@babel/plugin-transform-typescript";
16
16
  import zeusCompiler from "@zeus-js/compiler";
@@ -545,7 +545,7 @@ function createZeusBundlerPlugin(options = {}, createOptions) {
545
545
  exclude: componentExclude
546
546
  });
547
547
  const manifestResult = yield createManifest(root, componentInclude, componentExclude);
548
- for (const file of yield collectWatchFiles(root, componentInclude, componentExclude)) _this.addWatchFile(file);
548
+ for (const file of manifestResult.dependencies) _this.addWatchFile(file);
549
549
  const diagnostics = manifestResult.diagnostics;
550
550
  for (const diagnostic of diagnostics) {
551
551
  const message = formatDiagnostic(diagnostic);
@@ -687,9 +687,10 @@ function _createManifest() {
687
687
  version: 1,
688
688
  components: []
689
689
  },
690
- diagnostics: []
690
+ diagnostics: [],
691
+ dependencies: []
691
692
  };
692
- return yield analyzeComponents({
693
+ return yield analyzeComponentsWithDependencies({
693
694
  root,
694
695
  include,
695
696
  exclude
@@ -697,20 +698,6 @@ function _createManifest() {
697
698
  });
698
699
  return _createManifest.apply(this, arguments);
699
700
  }
700
- function collectWatchFiles(_x4, _x5, _x6) {
701
- return _collectWatchFiles.apply(this, arguments);
702
- }
703
- function _collectWatchFiles() {
704
- _collectWatchFiles = _asyncToGenerator(function* (root, include, exclude) {
705
- if (!include.length) return [];
706
- return yield fg(include, {
707
- cwd: root,
708
- absolute: true,
709
- ignore: exclude
710
- });
711
- });
712
- return _collectWatchFiles.apply(this, arguments);
713
- }
714
701
  function resolveTsLikeImport(id, importer, options) {
715
702
  var _options$extensions;
716
703
  if (!importer) return null;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zeus-js/bundler-plugin",
3
3
  "type": "module",
4
- "version": "0.1.0-beta.6",
4
+ "version": "0.1.0-beta.8",
5
5
  "description": "Zeus bundler plugin host",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -68,8 +68,8 @@
68
68
  "@babel/plugin-transform-typescript": "^8.0.0",
69
69
  "fast-glob": "^3.3.3",
70
70
  "picomatch": "^4.0.4",
71
- "@zeus-js/compiler": "0.1.0-beta.6",
72
- "@zeus-js/component-analyzer": "0.1.0-beta.6"
71
+ "@zeus-js/compiler": "0.1.0-beta.8",
72
+ "@zeus-js/component-analyzer": "0.1.0-beta.8"
73
73
  },
74
74
  "author": "Baicie",
75
75
  "buildOptions": {