skipNodeModules: true - the package manager will not be run in the isolated environment
keepExistingCapsule: true - the isolated environment will not be deleted.
Using the capsule.execNode API method to read node_modules from memory.
Using a deterministic name for the isolated environment* - I recommend an md5 of: host-project-name + component-name + component-version.
This will allow us to re-use the isolated environment - so note that any state written into the environment will be persisted. It will significantly improve the build performance.
You can see an example implementation of all the above in the build-performance branch.
Now that https://github.com/teambit/bit/pull/2162 has been released, it would be great if this compiler can use the new system.
What this would require:
isolate
function:skipNodeModules: true
- the package manager will not be run in the isolated environmentkeepExistingCapsule: true
- the isolated environment will not be deleted.capsule.execNode
API method to read node_modules from memory.host-project-name
+component-name
+component-version
.This will allow us to re-use the isolated environment - so note that any state written into the environment will be persisted. It will significantly improve the build performance.
You can see an example implementation of all the above in the
build-performance
branch.*this logic should be moved to Bit at some point