build: enable new decorator for swc (#7070)

bs now has migrated to stage 3 decorators. to enable running affine locally with debugging blocksuite, we need to [turn this on](https://swc.rs/docs/configuration/compilation#jsctransformdecoratorversion).

Question:
It seems affine core code already uses stage 3 decorators, however we do not have an issue without this flag since we haven't used class field decorators that uses the `accessor` keyword?
This commit is contained in:
pengx17
2024-05-27 05:22:28 +00:00
parent a440e85ffe
commit 13b51c7b22

View File

@@ -273,6 +273,7 @@ export const createConfiguration: (
},
},
useDefineForClassFields: false,
decoratorVersion: '2022-03',
},
},
sourceMaps: true,