* fix(nextjs): update babel setup to better support next apps * fix(testing): remove babel-jest.config.json used in jest.config.js - Fix `@nrwl/web/babel` to support Jest as well
11 lines
245 B
TypeScript
11 lines
245 B
TypeScript
/*
|
|
* Babel preset to provide Next.js support for Nx.
|
|
*/
|
|
module.exports = function (api, options) {
|
|
api.assertVersion(7);
|
|
return {
|
|
presets: ['next/babel'],
|
|
plugins: [['@babel/plugin-proposal-decorators', { legacy: true }]],
|
|
};
|
|
};
|