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

0.1.2 • Public • Published

esbuild-plugin-rawbundle npm

Installation

npm install --save-dev esbuild-plugin-rawbundle

Usage

Add it to esbuild plugins

import rawBundlePlugin from 'esbuild-plugin-rawbundle';

const esbuildOptions = {
  format: 'esm',
  platform: 'browser',
}

const buildOptions = {
  plugins: [rawBundlePlugin({ esbuildOptions })]
}

Then you can import ?rawbundle modules:

import rawBundle from 'jquery?rawbundle';

// rawBundle default export esm bundled jquery output

License

MIT

Copyright (c) 2021-present,

Riots

Dependencies (0)

    Dev Dependencies (4)

    Package Sidebar

    Install

    npm i esbuild-plugin-rawbundle

    Weekly Downloads

    75

    Version

    0.1.2

    License

    MIT

    Unpacked Size

    4.5 kB

    Total Files

    5

    Last publish

    Collaborators

    • gluck