Skip to content

Commit 0ef570f

Browse files
authored
v0.2.16
2 parents c99e794 + daa1c1e commit 0ef570f

File tree

4 files changed

+735
-33
lines changed

4 files changed

+735
-33
lines changed

babel.config.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,35 @@ module.exports = {
66
'@babel/preset-react',
77
['@babel/preset-typescript', { isTSX: true, allExtensions: true }],
88
],
9+
plugins: [
10+
["@babel/plugin-proposal-decorators", { legacy: true }],
11+
['@babel/plugin-proposal-class-properties', { loose: false }],
12+
['@babel/plugin-transform-classes', { loose: true }],
13+
['transform-imports', {
14+
'core-decorators': {
15+
transform: 'core-decorators/lib/${member}',
16+
preventFullImport: true,
17+
},
18+
}],
19+
],
920
},
1021
build: {
1122
presets: [
1223
['@babel/preset-env'],
1324
'@babel/preset-react',
1425
['@babel/preset-typescript', { isTSX: true, allExtensions: true }],
1526
],
27+
plugins: [
28+
["@babel/plugin-proposal-decorators", { legacy: true }],
29+
['@babel/plugin-proposal-class-properties', { loose: false }],
30+
['@babel/plugin-transform-classes', { loose: true }],
31+
['transform-imports', {
32+
'core-decorators': {
33+
transform: 'core-decorators/lib/${member}',
34+
preventFullImport: true,
35+
},
36+
}],
37+
],
1638
},
1739
},
1840
}

0 commit comments

Comments
 (0)