Releases: FogelAI/babel-plugin-transform-barrels
Releases · FogelAI/babel-plugin-transform-barrels
v1.0.23
New Features
- Add
moduleIgnorePatterns
option - ThemoduleIgnorePatterns
plugin option allows you to configure packages that you want to exclude from the plugin’s transformation process.
Bug Fixes
- Fix
jest.mock
bug. - Fix the Jest alias bug.
- Refactor and improve performance.
- Small fixes.
v1.0.22
v1.0.21
New Features
- Add
react-native
support - Implemented in the babelTransform.js file. - Add
jest.requireActual
function support - The module path parameter in thejest.requireActual
function can now be transformed by the plugin from the module path of a barrel file to the direct module path.
Bug Fixes
- Fix
jest.mock
bug. - Small fixes.
Tests
- Add new tests for the third-party package
@apollo/client
.
v1.0.20
New Features
- Add
package.json
exports
field support - The resolver module resolves the entry point from theexports
field in thepackage.json
file, 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
modulesDirs
option - ThemodulesDirs
plugin option can now be configured using themodules
value option of Webpack or themoduleDirectories
value option of Jest. - Add support for named exports of object destructuring - For example:
export const {a, b} = returnObject();
- Add
jest.mock
function support - The module path parameter in thejest.mock
function 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
alias
option replaces thewebpackAlias
andjestAlias
options. Similarly, theextensions
option replaces thewebpackExtensions
andjestExtensions
options. A new optionexecutorName
has 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
webpackAlias
option replaces thewebpackConfigFilename
andargs
options. - Add extensions config support - The
webpackExtensions
andjestExtensions
options.
Bug Fixes
- Fix resolver bug.
- Refactor and improve performance.
- Small fixes.