@normed/bundle 4.7.0 → 4.7.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/CHANGELOG.md CHANGED
@@ -6,6 +6,10 @@ Given a version number MAJOR.MINOR.PATCH, increment the:
6
6
  2. MINOR version when you add functionality in a backwards compatible manner, and
7
7
  3. PATCH version when you make backwards compatible bug fixes.
8
8
 
9
+ # 4.7.1
10
+
11
+ * PATCH: Fix `node.attrs is not iterable` error in pug templates when non-Tag AST nodes (e.g. code blocks, mixins, comments) are encountered during asset path rebasing.
12
+
9
13
  # 4.6.3
10
14
 
11
15
  * PATCH: Fix JavaScript and TypeScript files referenced from `.static.pug` templates being copied verbatim instead of being bundled. Script files (`.js`, `.jsx`, `.mjs`, `.cjs`, `.ts`, `.tsx`) are now properly processed through esbuild, bundling imports and transpiling TypeScript, producing `.js` output with correct paths in the generated HTML.
@@ -69286,6 +69286,7 @@ function createRebaseAssetsPlugin(entryFilePath) {
69286
69286
  }
69287
69287
  const assetAttrs = ASSET_ATTRIBUTES[node.name];
69288
69288
  if (!assetAttrs) continue;
69289
+ if (!node.attrs) continue;
69289
69290
  for (const attr of node.attrs) {
69290
69291
  if (!assetAttrs.includes(attr.name)) continue;
69291
69292
  const sourceFile = attr.filename || node.filename;