Skip to content

Commit dddd8bb

Browse files
committed
Enable inline-require-calls babel plugin
Configure babel to use the inline-require-calls plugin for build optimization. This allows marking specific require() calls with @__INLINE__ for inlining at build time.
1 parent c30c701 commit dddd8bb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.config/babel.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ module.exports = {
2121
version: '^7.27.1',
2222
},
2323
],
24+
path.join(babelPluginsPath, 'babel-plugin-inline-require-calls.js'),
2425
path.join(babelPluginsPath, 'transform-set-proto-plugin.mjs'),
2526
path.join(babelPluginsPath, 'transform-url-parse-plugin.mjs'),
2627
],

0 commit comments

Comments
 (0)