diff options
Diffstat (limited to 'next.config.js')
-rw-r--r-- | next.config.js | 9 |
1 files changed, 9 insertions, 0 deletions
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]) |