mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
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:
@@ -273,6 +273,7 @@ export const createConfiguration: (
|
||||
},
|
||||
},
|
||||
useDefineForClassFields: false,
|
||||
decoratorVersion: '2022-03',
|
||||
},
|
||||
},
|
||||
sourceMaps: true,
|
||||
|
||||
Reference in New Issue
Block a user