From 5f4611d65e40eae3ca6191a15f68d69ea5a1c4cb Mon Sep 17 00:00:00 2001 From: Kirill Rogovoy Date: Tue, 20 Jul 2021 21:24:52 +0300 Subject: WIP --- next.config.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 next.config.js (limited to 'next.config.js') diff --git a/next.config.js b/next.config.js new file mode 100644 index 0000000..01936a4 --- /dev/null +++ b/next.config.js @@ -0,0 +1,9 @@ +const fs = require('fs') + +/* eslint-disable @typescript-eslint/no-var-requires, immutable/no-mutation */ +const withPlugins = require('next-compose-plugins') + +const d3packages = fs.readdirSync('node_modules').filter(name => name.startsWith('d3-')) +const withTM = require('next-transpile-modules')(d3packages) + +module.exports = withPlugins([withTM]) -- cgit v1.2.3