feat(npm-aqua-compiler): create package (#401)

* Add npm-aqua-compiler package

* Release new package

* Remove noUncheckedIndexedAccess from tsconfig.json

* Fix a test script

* Fix length checks

* Fix

* Update error description

* Try to choose a nicer err message

* New import format and API

* Fix error message

* Improve test

* Don't add empty string key when globalImports prop is empty

* Fix exports
This commit is contained in:
Akim
2023-12-15 23:14:07 +07:00
committed by GitHub
parent ac407c204d
commit d6008110cf
49 changed files with 1653 additions and 154 deletions

View File

@ -36,7 +36,7 @@ export const fetchResource: FetchResourceFn = async (pkg, assetPath) => {
const packagePath = matches?.[0];
if (packagePath == null) {
if (packagePath === undefined) {
throw new Error(`Cannot find dependency ${name} in path ${posixPath}`);
}