Skip to content

Commit

Permalink
fix: use warnOnError to suppress `@rollup/plugin-dynamic-import-var…
Browse files Browse the repository at this point in the history
…s` errors (#104)
  • Loading branch information
kravetsone committed Jan 5, 2025
1 parent e1b3036 commit d4206d0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils/get-rollup-configs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,9 @@ const getConfig = {
json(),
esbuildTransform(esbuildConfig),
createRequire(),
dynamicImportVars(),
dynamicImportVars({
warnOnError: true,
}),
...(
options.minify
? [esbuildMinify(esbuildConfig)]
Expand Down

0 comments on commit d4206d0

Please sign in to comment.