Skip to content

Commit e76eef1

Browse files
authored
add babel import plugin (#762)
1 parent 6064101 commit e76eef1

File tree

7 files changed

+36
-3
lines changed

7 files changed

+36
-3
lines changed

web/babel.config.js

+11
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,15 @@ module.exports = {
1010
},
1111
],
1212
],
13+
plugins: [
14+
[
15+
"import",
16+
{
17+
libraryName: "antd",
18+
libraryDirectory: "es",
19+
style: false,
20+
},
21+
"antd",
22+
],
23+
],
1324
};

web/package-lock.json

+20-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@
4242
"typescript": "^5.1.3"
4343
},
4444
"devDependencies": {
45-
"@docusaurus/module-type-aliases": "^3.0.0"
45+
"@docusaurus/module-type-aliases": "^3.0.0",
46+
"babel-plugin-import": "^1.13.8"
4647
},
4748
"browserslist": {
4849
"production": [

web/src/components/Comparison/index.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ import React, {useEffect, useState} from 'react';
22
import styles from './styles.module.css';
33
import SyntaxHighlighter from 'react-syntax-highlighter';
44

5-
import {ConfigProvider, Form, Input, InputNumber, Select, Switch} from "antd";
5+
import Form from "antd/es/form";
6+
7+
import {ConfigProvider, Input, InputNumber, Select} from "antd";
68

79
const Comparison = () => {
810
const [name, setName] = useState("nginx");

web/static/img/ken_godoy.jpeg

-204 KB
Loading

web/static/img/kunal_kushwaha.jpeg

-91.2 KB
Loading

web/static/img/rossana_suarez.jpeg

-90.4 KB
Loading

0 commit comments

Comments
 (0)