diff --git a/examples/with-ant-design/.babelrc b/examples/with-ant-design/.babelrc index d3c9e3f8382b3672644e79c41223c9a952027c4b..0a0cd952d5a0e5c0da971f21423047980226ea8b 100644 --- a/examples/with-ant-design/.babelrc +++ b/examples/with-ant-design/.babelrc @@ -1,10 +1,13 @@ { - "presets": [ - "next/babel" - ], + "presets": ["next/babel"], "plugins": [ - ["import", { - "libraryName": "antd" - }] + "transform-decorators-legacy", + [ + "import", + { + "libraryName": "antd", + "style": false + } + ] ] } diff --git a/examples/with-ant-design/index.js b/examples/with-ant-design/index.js new file mode 100644 index 0000000000000000000000000000000000000000..3eb3b5c016df385892a57b4401a7abd35f39b38d --- /dev/null +++ b/examples/with-ant-design/index.js @@ -0,0 +1,14 @@ +import Head from 'next/head' +export default ({ children }) => +