@normed/bundle 4.3.0 → 4.3.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/CHANGELOG.md CHANGED
@@ -6,6 +6,14 @@ 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.3.2
10
+
11
+ * MINOR: fixes map files being expected when no sourcemap value is set.
12
+
13
+ # 4.3.1
14
+
15
+ * MINOR: Fixes artefact check for building less files (resolves unexpected artefact / missing artefact).
16
+
9
17
  # 4.3.0
10
18
 
11
19
  * MINOR: Adds the escape filter (:escape) which escapes HTML.
package/README.md CHANGED
@@ -57,6 +57,8 @@ Specify your configuration in your `package.json` by adding the `"bundle"` entry
57
57
 
58
58
  ```ts
59
59
  type EntryConfig = {
60
+ "entrypoint"?: boolean,
61
+
60
62
  // When true or a string outputs bundle analysis files. When a string, uses that string to prefix analysis files
61
63
  "analyse"?: boolean | string,
62
64
 
@@ -69399,6 +69399,10 @@ var esbuilder = {
69399
69399
  if (jsTypeFile.test(ext)) {
69400
69400
  return jsOutExt;
69401
69401
  }
69402
+ switch (ext) {
69403
+ case "less":
69404
+ return "css";
69405
+ }
69402
69406
  return ext;
69403
69407
  };
69404
69408
  const exampleFile = build2[0];
@@ -69408,7 +69412,7 @@ var esbuilder = {
69408
69412
  const outdir = exampleFile.outfile.basedir;
69409
69413
  const indir = exampleFile.infile.basedir;
69410
69414
  const baseConfig = exampleFile.entryconfig.esbuild;
69411
- const expectingSourcemap = (baseConfig.sourcemap ?? true) && baseConfig.sourcemap !== "inline";
69415
+ const expectingSourcemap = (baseConfig.sourcemap ?? true) && Boolean(baseConfig.sourcemap) && baseConfig.sourcemap !== "inline";
69412
69416
  const jsOutExt = baseConfig.format === "esm" ? "js" : "js";
69413
69417
  const promises = [];
69414
69418
  log_default.verbose("Base Config", JSON.stringify(baseConfig, null, 2));