diff --git a/packages/remix-image/rollup.config.js b/packages/remix-image/rollup.config.js index 04b851e..4c50aa8 100644 --- a/packages/remix-image/rollup.config.js +++ b/packages/remix-image/rollup.config.js @@ -6,6 +6,7 @@ import typescript from "rollup-plugin-typescript2"; import terser from "@rollup/plugin-terser"; import replace from "@rollup/plugin-replace"; import { version } from "./package.json"; +import { defineConfig } from "rollup"; const external = ["fs", "path", "react", "react-dom"]; @@ -16,7 +17,7 @@ const tsSettings = { }, }; -export default [ +export default defineConfig([ { input: "src/index.tsx", output: [ @@ -57,6 +58,7 @@ export default [ format: "cjs", sourcemap: true, exports: "named", + interop: "auto", }, ], external, @@ -77,10 +79,6 @@ export default [ __remix_image_version: version, }, }), - terser({ - keep_fnames: true, - sourceMap: true, - }), ], }, { @@ -125,4 +123,4 @@ export default [ }), ], }, -]; +]);