@zohodesk/client_build_tool 0.0.15-exp.4 → 0.0.15-exp.5

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.
@@ -29,13 +29,14 @@ class InjectChunkGraphPlugin {
29
29
 
30
30
  chunkGraph[chunkName] = chunkGroup.chunks;
31
31
  }); // Find runtime chunk file
32
-
33
- const runtimeChunk = stats.chunks.find(chunk => chunk.names?.some(n => n.includes('runtime~main')));
34
- const runtimeChunkName = runtimeChunk.files[0];
35
- const originalSource = compilation.assets[runtimeChunkName].source();
36
- const newSource = originalSource.replace('{{--preload-chunk-graph-object}}', `${JSON.stringify(chunkGraph)}`); // Update the runtime asset with injected code
37
-
38
- compilation.updateAsset(runtimeChunkName, new RawSource(newSource));
32
+ // const runtimeChunk = stats.chunks.find(
33
+ // (chunk) => chunk.names?.some((n) => n.includes('runtime~main'))
34
+ // );
35
+ // const runtimeChunkName =runtimeChunk.files[0]
36
+ // const originalSource = compilation.assets[runtimeChunkName].source();
37
+ // const newSource = originalSource.replace('{{--preload-chunk-graph-object}}', `${JSON.stringify(chunkGraph)}`);
38
+ // Update the runtime asset with injected code
39
+ // compilation.updateAsset(runtimeChunkName, new RawSource(newSource));
39
40
  });
40
41
  });
41
42
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/client_build_tool",
3
- "version": "0.0.15-exp.4",
3
+ "version": "0.0.15-exp.5",
4
4
  "description": "A CLI tool to build web applications and client libraries",
5
5
  "main": "lib/index.js",
6
6
  "bin": {