swc/tests/fixture/sourcemap/003/input/index.js
Donny/강동윤 ab687a0f98
fix(es/minifer): Fix handling of callable expressions (#2379)
swc_ecma_minifier:
 - `sequences`: Don't inline into arrow expression or function expressions.
 - Inject variables to arrow expressions correctly.
2021-10-10 03:47:11 +00:00

13 lines
235 B
JavaScript

export default function StaticPage({ data }) {
return <div>{data.foo}</div>
}
export async function getStaticProps() {
return {
props: {
data: {
foo: 'bar',
},
},
}
}