v1.0.0-beta.32
Feature: local modules files. Local modules are going to be injected only once and their references will be used throughout the app, thus reducing the final size of the final file. To add a file to be compiled as module, just add it to the src/modules
folder.
Warning Points:
1 - If you want to use props
inside the modules, you must pass it as a parameter. Modules live at the very top layer of Além and can't automatically access the props
where it's being used.
2 - It's not recommended to add stateful components to src/modules
;
3 - It supports stateless components.
- Performance improvement in the compiler;
- The way Além dependencies are loaded has been improved;
- Resource for using local modules implemented.
- It is possible to filter which files should not be interpreted as modules even if they are in the "modules" folder. Use the
"ignoreFileIfIncludes": ["styles.ts"]
insidealem.config.json
.
"modules": {
"ignoreFileIfIncludes": ["styles"]
}
- Added heavy logic execution time logs. To enable, update your .env with
SHOW_EXECUTION_TIME=true
. - Added new parsers.