Skip to content

Commit 054f89c

Browse files
committed
fix: lazyLoad selector formating
1 parent 74f4b64 commit 054f89c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ class ModuleGenerator {
3434
if (moduleName === 'outputPath' || typeof moduleInfo !== 'object') return;
3535
if (moduleInfo.selector) {
3636
// Generate lazyLoad statements for modules with selectors
37+
moduleInfo.selector = moduleInfo.selector.replaceAll("'", '"')
3738
moduleContent += `lazyLoad('${moduleName}', '${moduleInfo.selector}', () => import(/*webpackChunkName: "${moduleName}-chunk"*/ '${moduleInfo.import}'));\n`;
3839
} else {
3940
// Generate dependency statements for other modules

0 commit comments

Comments
 (0)