Releases: martpie/next-transpile-modules
4.0.2
4.0.1
4.0.0
Added support for Next.js 9.5
This is a breaking change, as the Next.js Webpack configuration was quite changed, and I did not want to maintain a compatibility layer based on the Next.js version. ;) This version is not compatible with next<4.5.0
.
So you don't have to do much to upgrade, apart from updating both your next
and next-transpile-modules
dependencies.
The support for Webpack 5 was also added, please consider it experimental as long as the Webpack 5 integration is experimental in Next.js.
Please report issues if you face any :)
Big thanks to @ScriptedAlchemy and @migatech2015 for helping with this release, and all the other persons involved in reviews and advices!
3.3.0
- Add support for Yarn PnP (Berry) (thanks @goszczynskip!)
3.2.0
3.1.0
3.0.2
3.0.1
3.0.0
next-transpile-modules-3.0
introduces some important new features, bugfixes, and a minor breaking change. The breaking changes are indicated by the
If you face problems with this new version please open an issue :)
⚠️ New plugin invocation
To avoid polluting the global config object with the transpileModule
property, next-transpile-modules
now exposes a function that takes an array of strings (the modules you want to transpile) as its first parameter.
In action:
// next.config.js
- const withTM = require('next-transpile-modules');
+ const withTM = require('next-transpile-modules')(['somemodule', 'and-another']);
module.exports = withTM({
- transpileModules: ['somemodule', 'and-another']
});
This notation was inspired by @next/bundle-analyzer
.
Added support Next.js 9.2 CSS features
In [email protected]
was added support for CSS files (as CSS modules or global CSS). next-transpile-modules
will now let your transpiled packages include CSS, and will allow you to import global CSS in pages/_app.js
.
More details are available in the documentation.
Bugfixes
Potentially breaking bugfixes depending on your setup:
⚠️ a transpiled module whose name was a substring of another module (let's call it A) won't make A to be transpiled anymore
For example: transpiling core
won't make core-js
to be transpiled too anymore.
⚠️ nestednode_modules
directories are now correctly ignored.
For example, if you want to transpile @shared/ui
, @share/ui/node_modules/lodash
won't get transpiled anymore.
Misc
- Unit-tests were refined to handle some edgecases
- End-to-end tests were added to ensure developing/refactoring this plugin with more confidence
- Added Prettier