@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.
- package/dist/src/index.js +6 -6
- package/dist/src/index.js.map +1 -1
- package/dist/src/index.mjs +6 -6
- package/dist/src/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/src/index.js
CHANGED
|
@@ -8887,7 +8887,7 @@ const log = (text, level, type = "debug", name) => {
|
|
|
8887
8887
|
color = chalk.cyan;
|
|
8888
8888
|
logFn = console.log;
|
|
8889
8889
|
}
|
|
8890
|
-
const prefix = name ? `[${
|
|
8890
|
+
const prefix = name ? `[${type}|${name}] ` : "";
|
|
8891
8891
|
if (level === "debug" || level === "info" && ["info", "error", "warn"].includes(type) || level === "warn" && ["error", "warn"].includes(type) || level === "error" && type === "error") {
|
|
8892
8892
|
const content = typeof text === "string" ? text : JSON.stringify(text, null, 2);
|
|
8893
8893
|
logFn(`${color(prefix)}${content}`);
|
|
@@ -29840,8 +29840,8 @@ function getRspackPlugin(factory) {
|
|
|
29840
29840
|
});
|
|
29841
29841
|
}
|
|
29842
29842
|
if (plugin.writeBundle) {
|
|
29843
|
-
compiler.hooks.afterEmit.
|
|
29844
|
-
plugin.writeBundle();
|
|
29843
|
+
compiler.hooks.afterEmit.tapPromise(plugin.name, async () => {
|
|
29844
|
+
await plugin.writeBundle();
|
|
29845
29845
|
});
|
|
29846
29846
|
}
|
|
29847
29847
|
}
|
|
@@ -30082,8 +30082,8 @@ function getWebpackPlugin(factory) {
|
|
|
30082
30082
|
});
|
|
30083
30083
|
}
|
|
30084
30084
|
if (plugin.writeBundle) {
|
|
30085
|
-
compiler.hooks.afterEmit.
|
|
30086
|
-
plugin.writeBundle();
|
|
30085
|
+
compiler.hooks.afterEmit.tapPromise(plugin.name, async () => {
|
|
30086
|
+
await plugin.writeBundle();
|
|
30087
30087
|
});
|
|
30088
30088
|
}
|
|
30089
30089
|
}
|
|
@@ -30152,7 +30152,7 @@ const buildPluginFactory = ({
|
|
|
30152
30152
|
|
|
30153
30153
|
var name = "@datadog/esbuild-plugin";
|
|
30154
30154
|
var packageManager = "yarn@4.0.2";
|
|
30155
|
-
var version = "2.0.2-dev-
|
|
30155
|
+
var version = "2.0.2-dev-7";
|
|
30156
30156
|
var license = "MIT";
|
|
30157
30157
|
var author = "Datadog";
|
|
30158
30158
|
var description = "Datadog ESBuild Plugin";
|