@datadog/esbuild-plugin 2.3.1-dev-0 → 2.3.1-dev-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.
@@ -19076,6 +19076,7 @@ const getInjectionPlugins = (opts, context, toInject) => {
19076
19076
  }
19077
19077
  };
19078
19078
  const isInjectedFile = (id) => {
19079
+ console.log("GOT INJECTED FILE", id);
19079
19080
  return id.includes(INJECTED_FILE);
19080
19081
  };
19081
19082
  return [
@@ -19148,13 +19149,23 @@ const getInjectionPlugins = (opts, context, toInject) => {
19148
19149
  name: RESOLUTION_PLUGIN_NAME,
19149
19150
  enforce: "post",
19150
19151
  resolveId(id) {
19152
+ console.log("RESOLVE", id);
19151
19153
  if (isInjectedFile(id)) {
19154
+ console.log("RESOLVED INJECTED", id);
19152
19155
  return { id, moduleSideEffects: true };
19153
19156
  }
19154
19157
  },
19155
- loadInclude: isInjectedFile,
19158
+ loadInclude(id) {
19159
+ console.log("LOAD INCLUDE", id);
19160
+ if (isInjectedFile(id)) {
19161
+ console.log("LOAD INCLUDE INJECTED", id);
19162
+ return true;
19163
+ }
19164
+ },
19156
19165
  load(id) {
19166
+ console.log("LOAD", id);
19157
19167
  if (isInjectedFile(id)) {
19168
+ console.log("LOAD INJECTED", id);
19158
19169
  return getContentToInject();
19159
19170
  }
19160
19171
  }
@@ -33205,7 +33216,7 @@ const buildPluginFactory = ({
33205
33216
 
33206
33217
  var name = "@datadog/esbuild-plugin";
33207
33218
  var packageManager = "yarn@4.0.2";
33208
- var version$1 = "2.3.1-dev-0";
33219
+ var version$1 = "2.3.1-dev-1";
33209
33220
  var license = "MIT";
33210
33221
  var author = "Datadog";
33211
33222
  var description = "Datadog ESBuild Plugin";