0.1.8 • Published 2 months ago

esbuild-plugin-raw v0.1.8

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

esbuild-plugin-raw

Install

$ npm install -D esbuild-plugin-raw

Usage

With build script

import esbuild from 'esbuild'
import RawPlugin from 'esbuild-plugin-raw'

esbuild.build({
  entryPoints: ['app.js'],
  bundle: true,
  outfile: 'out.js',
  plugins: [RawPlugin],
}).catch(() => process.exit(1))

With tsup

import { defineConfig } from 'tsup'
import RawPlugin from 'esbuild-plugin-raw'

export default defineConfig({
  entryPoints: ['index.ts'],
  format: ['cjs', 'esm'],
  dts: true,
  esbuildPlugins: [RawPlugin()],
  clean: true,
})

License

MIT License © 2021 hannoeru

0.1.8

2 months ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago