From b8763a50b5730ef43e730a23744172e975f26986 Mon Sep 17 00:00:00 2001 From: Simon Knott Date: Mon, 7 Nov 2022 13:58:15 +0100 Subject: [PATCH] add repro test --- .../code.js | 8 ++++++++ .../output.js | 10 ++++++++++ 2 files changed, 18 insertions(+) create mode 100644 test/pages/export gssP and page from other (repro #134)/code.js create mode 100644 test/pages/export gssP and page from other (repro #134)/output.js diff --git a/test/pages/export gssP and page from other (repro #134)/code.js b/test/pages/export gssP and page from other (repro #134)/code.js new file mode 100644 index 0000000..fb3cf9e --- /dev/null +++ b/test/pages/export gssP and page from other (repro #134)/code.js @@ -0,0 +1,8 @@ +import { + getServerSideProps, + PreviewPage, +} from '../../../common-components/contentful-elements/pages/preview'; + +export { getServerSideProps }; + +export default PreviewPage; \ No newline at end of file diff --git a/test/pages/export gssP and page from other (repro #134)/output.js b/test/pages/export gssP and page from other (repro #134)/output.js new file mode 100644 index 0000000..2e58854 --- /dev/null +++ b/test/pages/export gssP and page from other (repro #134)/output.js @@ -0,0 +1,10 @@ +import { withSuperJSONPage as _withSuperJSONPage } from 'babel-plugin-superjson-next/tools'; +import { withSuperJSONProps as _withSuperJSONProps } from 'babel-plugin-superjson-next/tools'; +import { + getServerSideProps, + PreviewPage, +} from '../../../common-components/contentful-elements/pages/preview'; + +export { getServerSideProps }; + +export default _withSuperJSONPage(PreviewPage);