@sencha/reext
Version:
ReExt - Sencha Ext JS components in React
18 lines (17 loc) • 468 B
JavaScript
module.exports = (nextConfig = {}) => {
return {
...nextConfig,
webpack(config, options) {
// Define the global variable
config.plugins.push(
new options.webpack.DefinePlugin({
'__IS_REEXT_RUNNING__': JSON.stringify('true'),
})
);
if (typeof nextConfig.webpack === 'function') {
return nextConfig.webpack(config, options);
}
return config;
}
};
};