1. Features:
1.1. Prepare resolve
to modules support, including following improvements:
- Constructor/instance-based imports in config factory and import aliases
- Run-time environment variable injection
- Normalize compile-time/run-time file path resolving
{
module: 'path',
options: {},
imports: { // optional
[importName1]: 'importPath1',
[importName2]: 'importPath2'
}
}
1.2. Implement consistent adapter constructors and custom resources abstact consistent import for constructors and instances for bundling.
2. Bug Fixes:
ERROR in /home/mrcheater/resolve/packages/core/resolve-scripts/lib/core/alias/$resolve.aliasName.js
Module build failed (from ~/resolve/node_modules/val-loader/dist/cjs.js):
Error: File "path/to/file.js" does not exist
at Object.valLoader (~/resolve/node_modules/val-loader/dist/index.js:60:16)
ERROR in ./path/to/file.js
Module build failed (from ~/resolve/packages/core/resolve-scripts/node_modules/babel-loader/lib/index.js):
SyntaxError: path/to/file.js: Unexpected token (63:7)
1 |
> 2 | export default Component
| ^
2.7. Pretty print the Babel Compilation Logs
Successfully compiled 1 file with Babel.
↑ [resolve-api-handler-awslambda] { moduleType: "cjs", moduleType: "server" }
Successfully compiled 1 file with Babel.
↑ [resolve-api-handler-express] { moduleType: "es", moduleType: "server" }
Successfully compiled 1 file with Babel.
...