Use whole path in patternfly imports

Otherwise we rely on treeshaking mechanisms to remove unused code, thus
making our bundle size more vulnerable to bundler's ability to drop dead
code.
This commit is contained in:
Katerina Koukiou 2023-02-23 15:38:00 +01:00 committed by Martin Pitt
parent cd6b2afc15
commit d2e6145ae1

View file

@ -19,7 +19,8 @@
import cockpit from 'cockpit';
import React from 'react';
import { Alert, Card, CardTitle, CardBody } from '@patternfly/react-core';
import { Alert } from "@patternfly/react-core/dist/esm/components/Alert/index.js";
import { Card, CardBody, CardTitle } from "@patternfly/react-core/dist/esm/components/Card/index.js";
const _ = cockpit.gettext;