mirror of
https://github.com/morten-olsen/bob-the-algorithm.git
synced 2026-02-08 00:46:25 +01:00
18 lines
486 B
JavaScript
18 lines
486 B
JavaScript
const createExpoWebpackConfigAsync = require("@expo/webpack-config");
|
|
const ReactRefreshWebpackPlugin = require("@pmmmwh/react-refresh-webpack-plugin");
|
|
|
|
module.exports = async function (env, argv) {
|
|
const config = await createExpoWebpackConfigAsync(env, argv);
|
|
|
|
// Use the React refresh plugin in development mode
|
|
if (env.mode === "development") {
|
|
config.plugins.push(
|
|
new ReactRefreshWebpackPlugin({
|
|
forceEnable: true,
|
|
})
|
|
);
|
|
}
|
|
|
|
return config;
|
|
};
|