diff --git a/packages/preset-dumi/src/transformer/fixtures/expect/demo-await-import.js b/packages/preset-dumi/src/transformer/fixtures/expect/demo-await-import.js index f3c401befd..4f99db7f83 100644 --- a/packages/preset-dumi/src/transformer/fixtures/expect/demo-await-import.js +++ b/packages/preset-dumi/src/transformer/fixtures/expect/demo-await-import.js @@ -8,11 +8,11 @@ dynamic({ await import("$CWD/packages/preset-dumi/src/transformer/fixtures/raw/index.less"); - var _default = function _default() { + var _default; + + return function _default() { return /*#__PURE__*/_react["default"].createElement(_antd.Button, null); }; - - return _default; }, loading: () => null }) \ No newline at end of file