build: Wrap bundles using webpack (#25557)
This commit is contained in:
parent
f7945ade07
commit
56d1fafe66
9 changed files with 169 additions and 178 deletions
|
@ -424,7 +424,7 @@ node::Environment* NodeBindings::CreateEnvironment(
|
|||
DCHECK(env);
|
||||
|
||||
// This will only be caught when something has gone terrible wrong as all
|
||||
// electron scripts are wrapped in a try {} catch {} in run-compiler.js
|
||||
// electron scripts are wrapped in a try {} catch {} by webpack
|
||||
if (try_catch.HasCaught()) {
|
||||
LOG(ERROR) << "Failed to initialize node environment in process: "
|
||||
<< process_type;
|
||||
|
|
|
@ -29,7 +29,7 @@ v8::MaybeLocal<v8::Value> CompileAndCall(
|
|||
v8::MaybeLocal<v8::Value> ret = fn->Call(
|
||||
context, v8::Null(isolate), arguments->size(), arguments->data());
|
||||
// This will only be caught when something has gone terrible wrong as all
|
||||
// electron scripts are wrapped in a try {} catch {} in run-compiler.js
|
||||
// electron scripts are wrapped in a try {} catch {} by webpack
|
||||
if (try_catch.HasCaught()) {
|
||||
LOG(ERROR) << "Failed to CompileAndCall electron script: " << id;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue