1# Converting HSP to HAR
2The HSP has requirements on the consistency of bundle names and signatures and the HSP file needs to be installed in the debugging phase. As a result, many integration problems occur in multi-module integration development. In this case, you are advised to use the HAR file to avoid these problems. This topic describes how to convert an HSP project to an HAR project by changing the configuration items.
3## How to Convert
4
51. In the **module.json5** file of the HSP module, change the value of the **type** field to **har** and delete the **deliveryWithInstall** and **pages** fields.
6    ```json
7    // MyApplication\library\src\main\module.json5
8    {
9        "module": {
10            "name": "har",
11            "type": "har",
12            "deviceTypes": [
13            "default",
14            "tablet",
15            "2in1"
16            ]
17        }
18    }
19    ```
202. Delete the **main_pages.json** file from the **resource\base\profile** folder.
21
223. Replace the content in the **hvigorfile.ts** file of the HSP module with the following content:
23    ```ts
24    // MyApplication\library\hvigorfile.ts
25    import { harTasks } from '@ohos/hvigor-ohos-plugin';
26
27    export default {
28        system: harTasks,  /* Built-in plugin of Hvigor. It cannot be modified. */
29        plugins:[]         /* Custom plugin to extend the functionality of Hvigor. */
30    }
31    ```
32
334. Delete the **packageType** configuration from the **oh-package.json5** file.
34
355. Modify the project-level **build-profile.json5** configuration file and delete **targets** from the HSP configuration in the **modules** module.
36