@asoltys/vite-plugin-stream-shim

1.0.5 • Public • Published

vite-plugin-shim-react-pdf

Adds necessary shims so that React PDF can be used with Vite.

Usage

$ yarn add @react-pdf/renderer
$ yarn add --dev vite-plugin-shim-react-pdf

Then in vite.config.js:

import { defineConfig } from "vite";
import reactRefresh from "@vitejs/plugin-react-refresh";
import shimReactPdf from "vite-plugin-shim-react-pdf";

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [reactRefresh(), shimReactPdf()],
});

Both yarn dev and yarn build should now work correctly in your Vite project.

Readme

Keywords

none

Package Sidebar

Install

npm i @asoltys/vite-plugin-stream-shim

Weekly Downloads

0

Version

1.0.5

License

MIT

Unpacked Size

5.77 kB

Total Files

5

Last publish

Collaborators

  • asoltys