Skip to content

Commit 0e2d7c3

Browse files
committed
Babel logging
1 parent 5134b40 commit 0e2d7c3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/app/src/sandbox/eval/transpilers/babel/worker/babel-worker.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ async function installPlugin(Babel, BFSRequire, plugin, currentPath, isV7) {
6767
Babel.availablePresets
6868
);
6969
} catch (e) {
70+
console.warn('First time compiling ' + plugin + ' went wrong, got:');
71+
console.warn(e);
7072
const prefixedName = getPrefixedPluginName(plugin, isV7);
7173

7274
evaluatedPlugin = evaluateFromPath(
@@ -77,6 +79,8 @@ async function installPlugin(Babel, BFSRequire, plugin, currentPath, isV7) {
7779
Babel.availablePlugins,
7880
Babel.availablePresets
7981
);
82+
83+
console.log('Second try succeeded');
8084
}
8185

8286
if (!evaluatedPlugin) {

0 commit comments

Comments
 (0)