aeo.js 0.0.9 → 0.0.10

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/vite.mjs CHANGED
@@ -1359,6 +1359,9 @@ function aeoVitePlugin(options = {}) {
1359
1359
  },
1360
1360
  load(id) {
1361
1361
  if (id === "\0virtual:aeo-widget") {
1362
+ if (!resolvedConfig.widget.enabled) {
1363
+ return "// aeo.js widget disabled";
1364
+ }
1362
1365
  const widgetConfig = {
1363
1366
  title: resolvedConfig.title,
1364
1367
  description: resolvedConfig.description,