@datadog/esbuild-plugin 2.0.2-dev-6 → 2.0.2-dev-7

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.
@@ -8865,7 +8865,7 @@ const log = (text, level, type = "debug", name) => {
8865
8865
  color = chalk.cyan;
8866
8866
  logFn = console.log;
8867
8867
  }
8868
- const prefix = name ? `[${chalk.bold(name)}|${type}] ` : "";
8868
+ const prefix = name ? `[${type}|${name}] ` : "";
8869
8869
  if (level === "debug" || level === "info" && ["info", "error", "warn"].includes(type) || level === "warn" && ["error", "warn"].includes(type) || level === "error" && type === "error") {
8870
8870
  const content = typeof text === "string" ? text : JSON.stringify(text, null, 2);
8871
8871
  logFn(`${color(prefix)}${content}`);
@@ -29818,8 +29818,8 @@ function getRspackPlugin(factory) {
29818
29818
  });
29819
29819
  }
29820
29820
  if (plugin.writeBundle) {
29821
- compiler.hooks.afterEmit.tap(plugin.name, () => {
29822
- plugin.writeBundle();
29821
+ compiler.hooks.afterEmit.tapPromise(plugin.name, async () => {
29822
+ await plugin.writeBundle();
29823
29823
  });
29824
29824
  }
29825
29825
  }
@@ -30060,8 +30060,8 @@ function getWebpackPlugin(factory) {
30060
30060
  });
30061
30061
  }
30062
30062
  if (plugin.writeBundle) {
30063
- compiler.hooks.afterEmit.tap(plugin.name, () => {
30064
- plugin.writeBundle();
30063
+ compiler.hooks.afterEmit.tapPromise(plugin.name, async () => {
30064
+ await plugin.writeBundle();
30065
30065
  });
30066
30066
  }
30067
30067
  }
@@ -30130,7 +30130,7 @@ const buildPluginFactory = ({
30130
30130
 
30131
30131
  var name = "@datadog/esbuild-plugin";
30132
30132
  var packageManager = "yarn@4.0.2";
30133
- var version = "2.0.2-dev-6";
30133
+ var version = "2.0.2-dev-7";
30134
30134
  var license = "MIT";
30135
30135
  var author = "Datadog";
30136
30136
  var description = "Datadog ESBuild Plugin";