You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The first version of the codegen doesn't support the import statement of Molecule yet. To deal with the cases of importing other schemas, the codegen CLI also needs to
The parser of Molecule written in JS doesn't support the import statement, therefore, it is better to handle the import statement separately. The instructions for handling the import feature could be
resolve the items from the import statement
convert the exported items into ESM syntax and append these items into the prepend
erase the import clause from the schema when calling the codegen method
generate code recursively and name outputs the same with schema's
For example, now we have 2 schema files, base and character
Note:
The parser of Molecule written in JS doesn't support the
import
statement, therefore, it is better to handle the import statement separately. The instructions for handling the import feature could beimport
statementprepend
import
clause from the schema when calling the codegen methodFor example, now we have 2 schema files,
base
andcharacter
After the codegen, it should be
The text was updated successfully, but these errors were encountered: