richardtallent / vite-plugin-singlefile

Vite plugin for inlining JavaScript and CSS resources
MIT License
808 stars 53 forks source link

[vite:singlefile] scriptCode.replaceAll is not a function error during build #61

Closed makerstorage closed 1 year ago

makerstorage commented 1 year ago

I am getting this with the below config file

import { defineConfig } from "vite"
import vue from "@vitejs/plugin-vue"
import { viteSingleFile } from "vite-plugin-singlefile"

export default defineConfig({
    plugins: [vue(), viteSingleFile()],
})
richardtallent commented 1 year ago

You need to upgrade node.