diff --git a/config/flat.js b/config/flat.js new file mode 100644 index 0000000000..f19931e2b8 --- /dev/null +++ b/config/flat.js @@ -0,0 +1,9 @@ +const importPlugin = require('../src'); + +module.exports = [ + { + plugins: { + import: importPlugin, + }, + }, +]; diff --git a/src/index.js b/src/index.js index feafba9003..b3dd294d50 100644 --- a/src/index.js +++ b/src/index.js @@ -68,4 +68,7 @@ export const configs = { 'react-native': require('../config/react-native'), electron: require('../config/electron'), typescript: require('../config/typescript'), + + // flat config support + flat: require('../config/flat'), };