Skip to content

Commit 7e4baa5

Browse files
FezVrastaFederico Zivolo
authored and
Federico Zivolo
committed
feat: add support for Babel macros
1 parent 210bb00 commit 7e4baa5

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
"@babel/polyfill": "^7.0.0",
4949
"asyncro": "^3.0.0",
5050
"autoprefixer": "^9.0.0",
51+
"babel-plugin-macros": "^2.4.2",
5152
"babel-plugin-transform-async-to-promises": "^0.8.1",
5253
"brotli-size": "^0.0.3",
5354
"camelcase": "^5.0.0",

src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,7 @@ function createConfig(options, entry, format, writeMeta) {
395395
require.resolve('@babel/plugin-proposal-class-properties'),
396396
{ loose: true },
397397
],
398+
require.resolve('babel-plugin-macros'),
398399
],
399400
}),
400401
{

0 commit comments

Comments
 (0)