@cocreate/webpack 1.3.3 → 1.3.4

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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [1.3.4](https://github.com/CoCreate-app/CoCreate-webpack/compare/v1.3.3...v1.3.4) (2024-04-26)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * lazyLoad selector formating ([054f89c](https://github.com/CoCreate-app/CoCreate-webpack/commit/054f89ccde31bd74c62e248c4c5aa00de0bd0d7d))
7
+
1
8
  ## [1.3.3](https://github.com/CoCreate-app/CoCreate-webpack/compare/v1.3.2...v1.3.3) (2024-03-19)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/webpack",
3
- "version": "1.3.3",
3
+ "version": "1.3.4",
4
4
  "description": "A Webpack integration tool for CoCreate applications, enabling file watching, automated chunking, lazy loading, and file uploading. It leverages CoCreate.config for streamlined project builds and development workflows.",
5
5
  "keywords": [
6
6
  "webpack",
package/src/index.js CHANGED
@@ -34,6 +34,7 @@ class ModuleGenerator {
34
34
  if (moduleName === 'outputPath' || typeof moduleInfo !== 'object') return;
35
35
  if (moduleInfo.selector) {
36
36
  // Generate lazyLoad statements for modules with selectors
37
+ moduleInfo.selector = moduleInfo.selector.replaceAll("'", '"')
37
38
  moduleContent += `lazyLoad('${moduleName}', '${moduleInfo.selector}', () => import(/*webpackChunkName: "${moduleName}-chunk"*/ '${moduleInfo.import}'));\n`;
38
39
  } else {
39
40
  // Generate dependency statements for other modules