mirror of
https://github.com/facebookarchive/prepack.git
synced 2024-09-20 03:27:09 +03:00
Fix lint on master
Summary: Release note: none Closes https://github.com/facebook/prepack/pull/1185 Differential Revision: D6397761 Pulled By: JWZ2018 fbshipit-source-id: 85e4c3fcf7f837ed3dad9729e5f18e5bf0c17ca3
This commit is contained in:
parent
dd8c39ee19
commit
3cd5ca1a89
@ -86,10 +86,7 @@ function runTest(name: string, code: string): boolean {
|
||||
sourceMaps: !!sourceMap,
|
||||
additionalFunctions: additionalFunctions,
|
||||
};
|
||||
if (name.endsWith("/bundle.js~"))
|
||||
(options: any).additionalFunctions = [
|
||||
"global.WildeBundle.prepareReact",
|
||||
];
|
||||
if (name.endsWith("/bundle.js~")) (options: any).additionalFunctions = ["global.WildeBundle.prepareReact"];
|
||||
let serialized = prepackSources(sources, options);
|
||||
let new_map = serialized.map; // force source maps to get computed
|
||||
if (!new_map) console.log(chalk.red("No source map"));
|
||||
|
Loading…
Reference in New Issue
Block a user