Skip to content

Releases: FogelAI/babel-plugin-transform-barrels

v1.0.23

25 Dec 13:57
Compare
Choose a tag to compare

New Features

  • Add moduleIgnorePatterns option - The moduleIgnorePatterns 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

05 Dec 19:00
Compare
Choose a tag to compare

Bug Fixes

  • Fix jest.mock bug.
  • Fix issue with absolute module path resolution.
  • Refactor and improve performance.
  • Small fixes.

v1.0.21

21 Nov 15:56
Compare
Choose a tag to compare

New Features

  • Add react-native support - Implemented in the babelTransform.js file.
  • Add jest.requireActual function support - The module path parameter in the jest.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

08 Nov 10:19
Compare
Choose a tag to compare

New Features

  • Add package.json exports field support - The resolver module resolves the entry point from the exports field in the package.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

23 Oct 18:31
Compare
Choose a tag to compare

New Features

  • Add modulesDirs option - The modulesDirs plugin option can now be configured using the modules value option of Webpack or the moduleDirectories 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 the jest.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

05 Oct 17:08
Compare
Choose a tag to compare

Bug Fixes

  • Fix Webpack alias bug.
  • Fix named export bug - This resolves the issue when using "export * from 'module path'".

Tests

  • Add new tests for the third-party package @emotion/react.

v1.0.17

22 Sep 07:44
Compare
Choose a tag to compare

Bug Fixes

  • Fix use of bundler special characters (?:!) in import path.
  • Small fixes.

Tests

  • Add new tests for the third-party package style-to-object.
  • Add new tests for the third-party package remark-rehype.

v1.0.16

12 Aug 13:43
Compare
Choose a tag to compare

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 the webpackAlias and jestAlias options. Similarly, the extensions option replaces the webpackExtensions and jestExtensions options. A new option executorName 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

17 Jul 14:25
Compare
Choose a tag to compare

New Features

  • Add mjs and cjs files support - Resolver can now resolve mjs and cjs files.

Bug Fixes

  • Small fixes.

Tests

  • Add third-party package (graphql) tests.
  • Add resolver tests for mjs and cjs files.

v1.0.14

13 Jul 20:01
Compare
Choose a tag to compare

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 the webpackConfigFilename and args options.
  • Add extensions config support - The webpackExtensions and jestExtensions options.

Bug Fixes

  • Fix resolver bug.
  • Refactor and improve performance.
  • Small fixes.