mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Use new defaults
ghstack-source-id: d2da1df69d
Pull Request resolved: https://github.com/facebook/react/pull/29205
22 lines
443 B
JavaScript
22 lines
443 B
JavaScript
/**
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
module.exports = function (api) {
|
|
api.cache(true);
|
|
return {
|
|
presets: ["next/babel"],
|
|
plugins: [
|
|
[
|
|
"babel-plugin-react-compiler",
|
|
{
|
|
runtimeModule: "react-compiler-runtime",
|
|
},
|
|
],
|
|
],
|
|
};
|
|
};
|