@pisell/build-plugin-lowcode 1.0.13-beta.2 → 1.0.13

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.
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="com.codeverse.userSettings.MarscodeWorkspaceAppSettingsState">
4
+ <option name="ckgOperationStatus" value="SUCCESS" />
5
+ <option name="progress" value="0.9230769" />
6
+ </component>
7
+ </project>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/build-plugin-lowcode",
3
- "version": "1.0.13-beta.2",
3
+ "version": "1.0.13",
4
4
  "description": "build plugin for component-to-lowcode",
5
5
  "main": "src/index.js",
6
6
  "keywords": [
package/src/index.js CHANGED
@@ -941,8 +941,8 @@ async function bundleEditorView(
941
941
  componentViewsImportStr = _componentViews
942
942
  .map((component) => {
943
943
  const componentNameFolder = camel2KebabComponentName(component);
944
- const viewJsPath = path.resolve(rootDir, `${lowcodeDir}/${componentNameFolder}/view`);
945
- return `import * as ${component}Data from '${viewJsPath}'`;
944
+ const viewJsPath = path.resolve(rootDir, `${lowcodeDir}/${componentNameFolder}/view`).replace(/\\/g, '\\\\');
945
+ return `import * as ${component}Data from '${viewJsPath}';`;
946
946
  })
947
947
  .join('\n');
948
948
  }