[!WARNING] Only for my ecosystem
Replaces __dirname and __filename, wraps class components in MobX observer and handles lodash tree-shaking.
import { BuildOptions } from 'esbuild';
import { pluginReplace } from 'dk-esbuild-plugin-replace';
const esbuildConfig: BuildOptions = {
plugins: [
pluginReplace({ filter: /\.(tsx?)$/ }),
],
};