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