Releases: FogelAI/babel-plugin-transform-barrels
Releases · FogelAI/babel-plugin-transform-barrels
v1.0.23
New Features
- Add
moduleIgnorePatternsoption - ThemoduleIgnorePatternsplugin option allows you to configure packages that you want to exclude from the plugin’s transformation process.
Bug Fixes
- Fix
jest.mockbug. - Fix the Jest alias bug.
- Refactor and improve performance.
- Small fixes.
v1.0.22
v1.0.21
New Features
- Add
react-nativesupport - Implemented in the babelTransform.js file. - Add
jest.requireActualfunction support - The module path parameter in thejest.requireActualfunction can now be transformed by the plugin from the module path of a barrel file to the direct module path.
Bug Fixes
- Fix
jest.mockbug. - Small fixes.
Tests
- Add new tests for the third-party package
@apollo/client.
v1.0.20
New Features
- Add
package.jsonexportsfield support - The resolver module resolves the entry point from theexportsfield in thepackage.jsonfile, if it exists.
Bug Fixes
- Add edge cases for re-exports all named exports (
export * from "./ReexportedAll"). - Refactor and improve performance.
- Small fixes.
Tests
- Add new tests for the third-party package
redux-undo. - Add new tests for the third-party package
react-virtualized.
v1.0.19
New Features
- Add
modulesDirsoption - ThemodulesDirsplugin option can now be configured using themodulesvalue option of Webpack or themoduleDirectoriesvalue option of Jest. - Add support for named exports of object destructuring - For example:
export const {a, b} = returnObject(); - Add
jest.mockfunction support - The module path parameter in thejest.mockfunction can now be transformed by the plugin from the module path of a barrel file to the direct module path.
Bug Fixes
- Fix CommonJS modules bug.
- Fix bug related to re-exporting all (
export * from "./ReexportedAll") when import paths contain special characters (?:!).
v1.0.18
v1.0.17
v1.0.16
New Features
- Add log option - Add log support with the ability to log either to the screen or to a file.
- Plugin options - The
aliasoption replaces thewebpackAliasandjestAliasoptions. Similarly, theextensionsoption replaces thewebpackExtensionsandjestExtensionsoptions. A new optionexecutorNamehas been added. For more details, refer to the Options section in the README.md file. - Vite bundler support: Add support for the Vite bundler.
Tests
- Add new tests for logging functionality.
- Add new tests for the third-party package
@ant-design/icons. - Add new tests for Vite.
v1.0.15
v1.0.14
New Features
- Add file-based caching - It improves the performance of tests in Jest and bundling in Webpack.
- Replace plugin options - The
webpackAliasoption replaces thewebpackConfigFilenameandargsoptions. - Add extensions config support - The
webpackExtensionsandjestExtensionsoptions.
Bug Fixes
- Fix resolver bug.
- Refactor and improve performance.
- Small fixes.