bbgo_origin/apps/backtest-report/next.config.js

34 lines
1.1 KiB
JavaScript
Raw Normal View History

// workaround for react financial charts
// https://github.com/react-financial/react-financial-charts/issues/606
2022-05-16 14:24:25 +00:00
// workaround for lightweight chart
// https://stackoverflow.com/questions/65936222/next-js-syntaxerror-unexpected-token-export
// https://stackoverflow.com/questions/66244968/cannot-use-import-statement-outside-a-module-error-when-importing-react-hook-m
const withTM = require('next-transpile-modules')([
2022-05-16 14:24:25 +00:00
'lightweight-charts',
'fancy-canvas',
// 'd3-array',
// 'd3-format',
// 'd3-time',
// 'd3-time-format',
// 'react-financial-charts',
// '@react-financial-charts/annotations',
// '@react-financial-charts/axes',
// '@react-financial-charts/coordinates',
// '@react-financial-charts/core',
// '@react-financial-charts/indicators',
// '@react-financial-charts/interactive',
// '@react-financial-charts/scales',
// '@react-financial-charts/series',
// '@react-financial-charts/tooltip',
// '@react-financial-charts/utils',
]);
2022-05-06 05:47:13 +00:00
/** @type {import('next').NextConfig} */
const nextConfig = {
2022-05-19 04:02:42 +00:00
reactStrictMode: false,
2022-05-06 05:47:13 +00:00
}
module.exports = withTM(nextConfig);