mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
### What? Patch cjs finder to detect `exports.foo` (instead of module.exports) ### Why? This causes an issue for `react.production.min.js`. x-ref: https://vercel.slack.com/archives/C02HY34AKME/p1707343215879979 ### How? Closes PACK-2443
21 lines
848 B
JavaScript
21 lines
848 B
JavaScript
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
|
|
import { useEffect } from "react";
|
|
import { select, selectAll } from "d3-selection";
|
|
export default function Home() {
|
|
useEffect(function() {
|
|
new MyClass();
|
|
}, []);
|
|
return /*#__PURE__*/ React.createElement("svg", null, /*#__PURE__*/ React.createElement("g", {
|
|
className: "group"
|
|
}, /*#__PURE__*/ React.createElement("path", null), /*#__PURE__*/ React.createElement("path", null)), /*#__PURE__*/ React.createElement("g", {
|
|
className: "group"
|
|
}, /*#__PURE__*/ React.createElement("path", null), /*#__PURE__*/ React.createElement("path", null)));
|
|
}
|
|
var MyClass = function MyClass() {
|
|
"use strict";
|
|
_class_call_check(this, MyClass);
|
|
selectAll(".group").each(function() {
|
|
select(this).selectAll("path");
|
|
});
|
|
};
|