@rqbazan/vite-plugin-shim-react-pdf
v1.1.0
Published
A shim that allows React PDF to be used with Vite
Readme
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 @rqbazan/vite-plugin-shim-react-pdfThen in vite.config.js:
import { defineConfig } from "vite";
import reactRefresh from "@vitejs/plugin-react-refresh";
import shimReactPdf from "@rqbazan/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.
