@gxp-dev/tools 2.0.54 → 2.0.55

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gxp-dev/tools",
3
- "version": "2.0.54",
3
+ "version": "2.0.55",
4
4
  "description": "Dev tools to create platform plugins",
5
5
  "type": "commonjs",
6
6
  "publishConfig": {
@@ -127,6 +127,10 @@ export default defineConfig(({ mode }) => {
127
127
  const useLocalIndex = env.USE_LOCAL_INDEX === "true" && hasLocalIndexHtml;
128
128
  const useLocalMain = env.USE_LOCAL_MAIN === "true" && hasLocalMainJs;
129
129
 
130
+ // Plugin enable/disable flags
131
+ const useSourceTracker = env.DISABLE_SOURCE_TRACKER !== "true";
132
+ const useInspector = env.DISABLE_INSPECTOR !== "true";
133
+
130
134
  // Log which files are being used
131
135
  console.log(`📄 index.html: ${useLocalIndex ? "local" : "runtime"}`);
132
136
  console.log(`📄 main.js: ${useLocalMain ? "local" : "runtime"}`);
@@ -239,10 +243,10 @@ export default defineConfig(({ mode }) => {
239
243
  plugins: [
240
244
  runtimeFilesPlugin,
241
245
  // Source tracker must run BEFORE vue() to transform templates before compilation
242
- gxpSourceTrackerPlugin(),
246
+ ...(useSourceTracker ? [gxpSourceTrackerPlugin()] : []),
243
247
  vue(),
244
248
  // GxP Inspector plugin for browser extension integration
245
- gxpInspectorPlugin(),
249
+ ...(useInspector ? [gxpInspectorPlugin()] : []),
246
250
  externalGlobals(
247
251
  {
248
252
  vue: "Vue",