remove resize observer polyfill

This commit is contained in:
sk1982 2024-04-11 00:05:46 -04:00
parent 94ebfd50d0
commit 9e73289bfc
2 changed files with 2 additions and 0 deletions

View File

@ -61,6 +61,7 @@ module.exports = bundleAnalyzer({ enabled: !!process.env.ANALYZE })({
productionBrowserSourceMaps: true,
webpack: config => {
config.externals = [...config.externals, 'bcrypt', 'mysql2'];
config.resolve.alias['resize-observer-polyfill'] = path.resolve(__dirname, 'resize-observer.cjs');
return config;
}
});

1
resize-observer.cjs Normal file
View File

@ -0,0 +1 @@
module.exports = globalThis.ResizeObserver;