Как исправить ошибку реагирования приложения: обнаружена неэффективная упаковка?
Я использую UI5 для React (ui5-webcomponents-react
0.10.8) из SAP. Когда я запускаю свое приложение, я получаю несколько ошибок, касающихся неэффективного связывания.
Inefficient bundling detected: consider bundling CLDR imports as URLs instead of inlining them.
See rollup-plugin-url or webpack file-loader for more information.
Suggested pattern: "assets\/.*\.json"
Inefficient bundling detected: consider bundling theme properties imports as URLs instead of inlining them.
See rollup-plugin-url or webpack file-loader for more information.
Suggested pattern: "assets\/.*\.json"
Inefficient bundling detected: consider bundling theme properties imports as URLs instead of inlining them.
See rollup-plugin-url or webpack file-loader for more information.
Suggested pattern: "assets\/.*\.json"
Inefficient bundling detected: consider bundling i18n imports as URLs instead of inlining them.
See rollup-plugin-url or webpack file-loader for more information.
Suggested pattern: "assets\/.*\.json"
Inefficient bundling detected: consider bundling theme properties imports as URLs instead of inlining them.
See rollup-plugin-url or webpack file-loader for more information.
Suggested pattern: "assets\/.*\.json"
Inefficient bundling detected: consider bundling i18n imports as URLs instead of inlining them.
See rollup-plugin-url or webpack file-loader for more information.
Suggested pattern: "assets\/.*\.json"
Я уже установил файл-загрузчик (npm install file-loader --save-dev
) и создал
webpack.config.js
module.exports = {
module: {
rules: [
{
test: [
/\.(png|jpe?g|gif)$/i,
/cldr\/.*\.json$/,
/i18n\/.*\.json$/,
/assets\/.*\.json$/
],
use: [
{
loader: 'file-loader',
},
],
},
],
},
};
Но я все равно получаю ошибки в консоли. Что я сделал не так и как это исправить?