mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-07-11 14:01:58 +00:00
fix handleWarning in rollup config
This commit is contained in:
@@ -5,7 +5,7 @@ import externalGlobals from "rollup-plugin-external-globals";
|
|||||||
import del from 'rollup-plugin-delete'
|
import del from 'rollup-plugin-delete'
|
||||||
import replace from '@rollup/plugin-replace';
|
import replace from '@rollup/plugin-replace';
|
||||||
import typescript from '@rollup/plugin-typescript';
|
import typescript from '@rollup/plugin-typescript';
|
||||||
import { defineConfig, handleWarning } from 'rollup';
|
import { defineConfig } from 'rollup';
|
||||||
|
|
||||||
const hiddenWarnings = [
|
const hiddenWarnings = [
|
||||||
"THIS_IS_UNDEFINED",
|
"THIS_IS_UNDEFINED",
|
||||||
@@ -41,7 +41,7 @@ export default defineConfig({
|
|||||||
return 'chunk-[hash].js'
|
return 'chunk-[hash].js'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onwarn: function ( message ) {
|
onwarn: function ( message, handleWarning ) {
|
||||||
if (hiddenWarnings.some(warning => message.code === warning)) return;
|
if (hiddenWarnings.some(warning => message.code === warning)) return;
|
||||||
handleWarning(message);
|
handleWarning(message);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user