#Custom ESBuild configs

2 messages · Page 1 of 1 (latest)

light horizon
#

Hi everyone.

With webpack we were able to create custom configs like this for example:

custom-webpack.config.ts:

import type { Configuration } from 'webpack';

module.exports = {
  entry: {
    background: {
      import: 'src/background/worker.ts',
      runtime: false,
    },
    ['content-script']: {
      import: 'src/content/script.ts',
      runtime: false,
    },
  },
} as Configuration;

How can I do a smiliar thing with esbuild now? is it possible?

jade mauve