changelogs-arkcompiler.md 1.6 KB
Newer Older
E
ester.zhou 已提交
1
# ArkCompiler Subsystem Changelog
2

E
ester.zhou 已提交
3
## cl.arkcompiler.1 Removal of ts2abc Compiler from SDK
4

E
ester.zhou 已提交
5
ArkCompiler in the SDK included the ts2abc and es2abc compilers for compilation of .ets and .js files. Since this version, the ts2abc compiler has been removed. You can check the changes shown below in the **ets\build-tools\ets-loader\bin** and **js\build-tools\ets-loader\bin** directories of the SDK.
6 7 8

![stack](figures/api10_sdk_arkcompiler_component_change.png)

E
ester.zhou 已提交
9 10
**Change Impact**
This change does not affect your development in DevEco Studio. If you use scripts to generate ABC files, use the es2abc compiler instead of es2abc.
11 12

**Key API/Component Changes**
E
ester.zhou 已提交
13
The ts2abc related components are removed from the SDK.
14 15

**Adaptation Guide**
E
ester.zhou 已提交
16 17 18
1. If you are using DevEco Studio for application development, the removal of the ts2abc compiler has no influence.
2. If you are writing scripts to use the ts2abc compiler, you'll need switch to the es2abc compiler. For details about how to use the es2abc compiler and its comparison with the ts2abc compiler, see [Usage Guidelines](https://gitee.com/openharmony/arkcompiler_ets_frontend/blob/master/README.md#usage-guidelines). Assume that **a.js** is the target .js file for compilation. For ABC file generation, which is the most frequently encountered scenario, the compilation commands are as follows:
    - Compilation in script mode
19 20
        1. es2abc: es2abc a.js --output a.abc
        2. ts2abc: node --expose-gc pathToIndex/index.js a.js --output a.abc
E
ester.zhou 已提交
21
    - Compilation in module mode
22
        1. es2abc: es2abc a.js --module --output a.abc
E
ester.zhou 已提交
23
        2. ts2abc: node --expose-gc pathToIndex/index.js a.js --module --output a.abc