Custom

Pareto support custom rspack and babel configuration.

rspack configuration

create rspack.config.ts in the root directory of your project.

import { rspack } from '@rspack/core'
import { ParetoConfig } from '@paretojs/core/config'

const config: ParetoConfig = {
  configureRspack(config, { isServer }) {
    // ... custom your rspack configuration
    return config
  },
}

export default config

babel configuration

create babel.config.js in the root directory of your project.

module.exports = {
  plugins: ['macros'],
}

babel will auto merge your babel configuration with pareto built-in configuration.