diff options
author | Kirill Rogovoy <[email protected]> | 2021-07-20 21:24:52 +0300 |
---|---|---|
committer | Kirill Rogovoy <[email protected]> | 2021-07-20 21:24:52 +0300 |
commit | 5f4611d65e40eae3ca6191a15f68d69ea5a1c4cb (patch) | |
tree | 273dfc086444533d86d580961c92ba8d14781a67 /next.config.js | |
parent | f0bf4e7afdcd8b02a62be45ab3e7d047ed865a79 (diff) |
WIP
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]) |