Package Exports
- build-island
- build-island/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (build-island) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
build-island
Manage intermediate process for TypeScript, CommonJS and Vanilla JS mixed environment
You can get a solution for some of defects/bugs in the internal loader of nodejs such as below:
(Case1) [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for ...
(Case2) require() of ES Module is not supported
(Case3) exports is not defined
Usage - for build child directory
...
"script": {
"build": "npx build-island b cmd/oips"
},
...
// => you can run a build safely which root directory is at "./cmd/oips" (child directory, package `type: "module"`)