Disable sourcemaps for emotion to fix chrome Profiler freeze
Summary:
When trying to profile the Electron app, since recently the profiler hangs when trying to start the initializer. Found the following weird message in the console and googled the problem :-P
{F239554230}
Reviewed By: jknoxville
Differential Revision: D21929677
fbshipit-source-id: 7a9f150ebc8df30fa2890c9dbb79c8c144a5feae
This commit is contained in:
committed by
Facebook GitHub Bot
parent
525d0e9925
commit
0007ef4b27
@@ -48,7 +48,10 @@ const tsTransformPlugins = [
|
||||
commonJsPlugin,
|
||||
optionalChainingPlugin,
|
||||
coalescingOperatorPlugin,
|
||||
[emotionPlugin, {autoLabel: true}],
|
||||
// Sourcemap disabled because
|
||||
// https://github.com/electron/electron/issues/17772#issuecomment-570795784
|
||||
// https://github.com/emotion-js/emotion/issues/1838
|
||||
[emotionPlugin, {autoLabel: true, sourceMap: false}],
|
||||
];
|
||||
const jsTransformPlugins = [
|
||||
commonJsPlugin,
|
||||
@@ -58,7 +61,7 @@ const jsTransformPlugins = [
|
||||
optionalChainingPlugin,
|
||||
coalescingOperatorPlugin,
|
||||
dynamicRequiresPlugin,
|
||||
[emotionPlugin, {autoLabel: true}],
|
||||
[emotionPlugin, {autoLabel: true, sourceMap: false}],
|
||||
];
|
||||
|
||||
export default function transform({
|
||||
|
||||
Reference in New Issue
Block a user