You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It took me a while to find out how to create a custom babel-preset, where I can pass options to it. It would be good if you can add an example to the documentation, in a way like this:
// babel-preset-myPreset on npmmodule.exports=(api,opts)=>{return{plugins: ["@babel/plugin-proposal-nullish-coalescing-operator","@babel/plugin-proposal-optional-chaining"],presets: [["@babel/preset-env",{useBuiltIns: "entry",
...(opts&&opts)}]]}}
It took me a while to find out how to create a custom babel-preset, where I can pass options to it. It would be good if you can add an example to the documentation, in a way like this:
call in webpack configuration
The text was updated successfully, but these errors were encountered: