Skip to content

Commit

Permalink
fix: ci build error
Browse files Browse the repository at this point in the history
  • Loading branch information
da730 committed Jan 29, 2024
1 parent aa06486 commit 0d6f848
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tools/bundler/src/logic/rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ export function getRollupOptions(
input: entry,
external: getExternal(rawPackageJson, config.external),
...config.rollupOptions,
onwarn: function (warning) {
// eslint-disable-next-line no-console
console.log(warning.code, warning.message);
if (warning.code === 'THIS_IS_UNDEFINED' || warning.code === 'SOURCEMAP_ERROR') {
return;
}
},
plugins: [
resolve(),
commonjs(),
Expand Down

0 comments on commit 0d6f848

Please sign in to comment.