vite-plugin-node-polyfills icon indicating copy to clipboard operation
vite-plugin-node-polyfills copied to clipboard

Add support for subpath polyfills

Open davidmyersdev opened this issue 2 years ago • 1 comments

  • fixes #48

Overview

TBD

import { defineConfig } from 'vite'
import { nodePolyfills } from 'vite-plugin-node-polyfills'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    nodePolyfills({
      overrides: {
        'fs': 'memfs',
        'path/posix': 'path-browserify',
      },
    }),
  ],
})

davidmyersdev avatar Dec 23 '23 06:12 davidmyersdev

@davidmyersdev what happened with this one?

shellscape avatar Feb 24 '24 02:02 shellscape