/*
  Optional.
  See: https://nextjs.org/docs/#customizing-webpack-config
*/
module.exports = {
  webpack(config, options) {
    /*
      Used to import [.d.ts] typescript files.
    */
    config.module.rules.push({
      test: /\.d\.ts$/,
      use: 'raw-loader',
    });

    return config;
  },
};
