Skip to content

Commit c931499

Browse files
committed
fix: ensure we register Babel plugins with their full path
1 parent 8519d7c commit c931499

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ts/addon.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ export default addon({
185185
_addBabelPluginIfNotPresent(pluginName: string, pluginOptions?: AddPluginOptions) {
186186
let target = this._getConfigurationTarget();
187187
if (!hasPlugin(target, pluginName)) {
188-
addPlugin(target, pluginName, pluginOptions);
188+
addPlugin(target, require.resolve(pluginName), pluginOptions);
189189
}
190190
},
191191

0 commit comments

Comments
 (0)