/** * This file has been autogenerated as it didn't exist or was made for an older incompatible version. * This file can be used for manual configuration will not be modified if the flowDefaults constant exists. */ const merge = require('webpack-merge'); const flowDefaults = require('./webpack.generated.js'); module.exports = merge(flowDefaults, { }); /** * This file can be used to configure the flow plugin defaults. * * // Add a custom plugin * flowDefaults.plugins.push(new MyPlugin()); * * // Update the rules to also transpile `.mjs` files * if (!flowDefaults.module.rules[0].test) { * throw "Unexpected structure in generated webpack config"; * } * flowDefaults.module.rules[0].test = /\.m?js$/ * * // Include a custom JS in the entry point in addition to generated-flow-imports.js * if (typeof flowDefaults.entry.index != "string") { * throw "Unexpected structure in generated webpack config"; * } * flowDefaults.entry.index = [flowDefaults.entry.index, "myCustomFile.js"]; * * or add new configuration in the merge block. * * module.exports = merge(flowDefaults, { * mode: 'development', * devtool: 'inline-source-map' * }); * */