1.0.7 • Published 2 years ago

esbuild-plugin-path-alias v1.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

esbuild-plugin-path-alias

npm version test

A esbuild plugin to support path alias like resolve.alias in webpack config.

Usage

npm install -D esbuild-plugin-path-alias
const esbuild = require('esbuild');
const aliasPlugin = require('esbuild-plugin-path-alias');
const path = require('path');

esbuild.build({
  entryPoints: [path.resolve(__dirname, './app/app.jsx')],
  bundle: true,
  outdir: 'dist',
  external: ['react'],
  plugins: [
    aliasPlugin({
      // must be absolute path
      '@': path.resolve(__dirname, './app/component')
    })
  ],
  logLevel: 'debug'
});

See test for details.

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago