dk-esbuild-plugin-replace
TypeScript icon, indicating that this package has built-in type declarations

0.0.11 • Public • Published

dk-esbuild-plugin-replace

npm license

[!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?)$/ }),
  ],
};

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i dk-esbuild-plugin-replace

      Weekly Downloads

      2

      Version

      0.0.11

      License

      MIT

      Unpacked Size

      8.8 kB

      Total Files

      9

      Last publish

      Collaborators

      • dkazakov8