Neat Paraskavedekatriaphobia's Meaning

    esbuild-plugin-resolve

    1.0.3 • Public • Published

    esbuild-plugin-resolve

    Change where a module dependency is resolved/imported from.

    Installation

    npm i --save-dev esbuild-plugin-resolve
    

    Usage

    import esbuild from 'esbuild';
    import resolve from 'esbuild-plugin-resolve';
    
    esbuild.build({
      entryPoints: ['./src/index.js'],
      bundle: true,
      outfile: './lib/index.js',
      plugins: [resolve({
        test: 'test-two/lib/example'
      })]
    });
    
    // The following will be rewritten
    import test from 'test'
    import test from 'test-two/lib/example'

    Install

    npm i esbuild-plugin-resolve

    DownloadsWeekly Downloads

    103

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    5.55 kB

    Total Files

    10

    Last publish

    Collaborators

    • markwylde