@datadog/vite-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.
package/dist/src/index.js CHANGED
@@ -19099,6 +19099,7 @@ const getInjectionPlugins = (opts, context, toInject) => {
19099
19099
  }
19100
19100
  };
19101
19101
  const isInjectedFile = (id) => {
19102
+ console.log("GOT INJECTED FILE", id);
19102
19103
  return id.includes(INJECTED_FILE);
19103
19104
  };
19104
19105
  return [
@@ -19171,13 +19172,23 @@ const getInjectionPlugins = (opts, context, toInject) => {
19171
19172
  name: RESOLUTION_PLUGIN_NAME,
19172
19173
  enforce: "post",
19173
19174
  resolveId(id) {
19175
+ console.log("RESOLVE", id);
19174
19176
  if (isInjectedFile(id)) {
19177
+ console.log("RESOLVED INJECTED", id);
19175
19178
  return { id, moduleSideEffects: true };
19176
19179
  }
19177
19180
  },
19178
- loadInclude: isInjectedFile,
19181
+ loadInclude(id) {
19182
+ console.log("LOAD INCLUDE", id);
19183
+ if (isInjectedFile(id)) {
19184
+ console.log("LOAD INCLUDE INJECTED", id);
19185
+ return true;
19186
+ }
19187
+ },
19179
19188
  load(id) {
19189
+ console.log("LOAD", id);
19180
19190
  if (isInjectedFile(id)) {
19191
+ console.log("LOAD INJECTED", id);
19181
19192
  return getContentToInject();
19182
19193
  }
19183
19194
  }
@@ -33228,7 +33239,7 @@ const buildPluginFactory = ({
33228
33239
 
33229
33240
  var name = "@datadog/vite-plugin";
33230
33241
  var packageManager = "yarn@4.0.2";
33231
- var version$1 = "2.3.1-dev-0";
33242
+ var version$1 = "2.3.1-dev-1";
33232
33243
  var license = "MIT";
33233
33244
  var author = "Datadog";
33234
33245
  var description = "Datadog Vite Plugin";