mirror of
https://github.com/swc-project/swc.git
synced 2024-12-22 21:21:31 +03:00
ab687a0f98
swc_ecma_minifier: - `sequences`: Don't inline into arrow expression or function expressions. - Inject variables to arrow expressions correctly.
13 lines
235 B
JavaScript
13 lines
235 B
JavaScript
export default function StaticPage({ data }) {
|
|
return <div>{data.foo}</div>
|
|
}
|
|
|
|
export async function getStaticProps() {
|
|
return {
|
|
props: {
|
|
data: {
|
|
foo: 'bar',
|
|
},
|
|
},
|
|
}
|
|
} |