@normed/bundle 4.6.0 → 4.6.2

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/bundles/index.js CHANGED
@@ -69411,8 +69411,9 @@ async function processPackageAsset(absoluteSource, packageSpecifier, pugFilePath
69411
69411
  const content = await import_fs4.default.promises.readFile(absoluteSource);
69412
69412
  const hash = computeContentHash(content);
69413
69413
  const filename = import_path5.default.basename(packageSpecifier);
69414
+ const packageAssetNames = assetNames.replace(/\[dir\]\/?/g, "");
69414
69415
  const hashedFilename = applyAssetNamesTemplate(
69415
- assetNames,
69416
+ packageAssetNames,
69416
69417
  filename,
69417
69418
  hash,
69418
69419
  ""
@@ -70182,7 +70183,7 @@ var esbuilder = {
70182
70183
  );
70183
70184
  for (const cssSourcePath of newEntryPoints) {
70184
70185
  processedPackageCssFiles.add(cssSourcePath);
70185
- const entryNames = "[name]-[hash]";
70186
+ const entryNames = (finalConfig.assetNames?.replace("[ext]", "") || "[name]-[hash]").replace(/\[dir\]\/?/g, "");
70186
70187
  const cssConfig = {
70187
70188
  ...finalConfig,
70188
70189
  entryPoints: [cssSourcePath],