@stacksjs/stx 0.2.127 → 0.2.129

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.
@@ -100,7 +100,8 @@ function createBundlePlugin(projectRoot, templateDir, tmpEntry, inputFiles) {
100
100
  });
101
101
  build.onLoad({ filter: /\.(?:[cm]?[jt]sx?|json)$/ }, (args) => {
102
102
  const extension = path.extname(args.path).toLowerCase(), loader = extension === ".json" ? "json" : extension === ".tsx" ? "tsx" : extension === ".jsx" ? "jsx" : extension === ".ts" || extension === ".mts" || extension === ".cts" ? "ts" : "js";
103
- inputFiles.add(args.path);
103
+ if (args.path !== tmpEntry)
104
+ inputFiles.add(args.path);
104
105
  return {
105
106
  contents: fs.readFileSync(args.path, "utf8"),
106
107
  loader