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:
parent
cd6b2afc15
commit
d2e6145ae1
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue