Skip to content

Commit

Permalink
fix: automatic runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
dozyio committed Jan 29, 2023
1 parent a1154fd commit 9dcb771
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"presets": [
"@babel/preset-env",
"@babel/preset-typescript",
"@babel/preset-react"
["@babel/preset-react", { "runtime": "automatic" }]
],
"plugins": ["@babel/plugin-proposal-object-rest-spread"]
}
3 changes: 2 additions & 1 deletion dist/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
});
exports["default"] = void 0;
var _react = require("react");
var _jsxRuntime = require("react/jsx-runtime");
var Identicon = function Identicon(_ref) {
var seed = _ref.seed,
_ref$className = _ref.className,
Expand Down Expand Up @@ -113,7 +114,7 @@ var Identicon = function Identicon(_ref) {
(0, _react.useEffect)(function () {
generateIdenticon();
});
return /*#__PURE__*/React.createElement("canvas", {
return /*#__PURE__*/(0, _jsxRuntime.jsx)("canvas", {
ref: canvasRef,
className: className
});
Expand Down

0 comments on commit 9dcb771

Please sign in to comment.