Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Tags: Yumwey/bit

Tags

manual-nightly

Toggle manual-nightly's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
fix error Cannot find module "babel-preset-jest" when bit is installe…

…d globally (teambit#3328)

Because the Jest transformer doesn't require the package directly but uses `require.resolve`, it needs to be specified in the workspace.json/component.json file.
Currently, `babel-preset-jest` is configured in the global workspace.jsonc and not specifically on the react aspect. As a result, locally, it finds the package, but globally, it does not.

In this PR, all `require.resolve` were changed to `require`, so then Bit dependency resolution would find them and automatically add them as dependencies.

v14.8.8

Toggle v14.8.8's commit message

v14.8.7

Toggle v14.8.7's commit message

v14.8.6

Toggle v14.8.6's commit message

v14.8.5

Toggle v14.8.5's commit message

v14.8.4

Toggle v14.8.4's commit message

v14.8.3

Toggle v14.8.3's commit message

v14.8.2

Toggle v14.8.2's commit message

v14.8.1

Toggle v14.8.1's commit message

v14.8.0

Toggle v14.8.0's commit message