Files
vercel_dashboard_example/.pnpm-store/v11/files/d3/d1eea7bc0a45816b92bf40db63833465f42b8cac29c7d3147401cdb30c423a1517a1c58b49c4bf76deab998026851dd2f29ec0a52337b9e2df1b7ab0e6fa94
T
2026-05-12 14:53:15 +00:00

29 lines
1.2 KiB
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "default", {
enumerable: true,
get: function() {
return NextPageDisallowReExportAllExports;
}
});
function NextPageDisallowReExportAllExports() {
return {
visitor: {
ExportAllDeclaration (path) {
var _path_node_loc, _path_node_loc1;
const err = Object.defineProperty(new SyntaxError(`Using \`export * from '...'\` in a page is disallowed. Please use \`export { default } from '...'\` instead.\n` + `Read more: https://nextjs.org/docs/messages/export-all-in-page`), "__NEXT_ERROR_CODE", {
value: "E555",
enumerable: false,
configurable: true
});
err.code = 'BABEL_PARSE_ERROR';
err.loc = ((_path_node_loc = path.node.loc) == null ? void 0 : _path_node_loc.start) ?? ((_path_node_loc1 = path.node.loc) == null ? void 0 : _path_node_loc1.end) ?? path.node.loc;
throw err;
}
}
};
}
//# sourceMappingURL=next-page-disallow-re-export-all-exports.js.map