mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-14 10:01:08 +08:00
feat: Node-API engine support (#10710)
This commit is contained in:
4
packages/webpack5/package-lock.json
generated
4
packages/webpack5/package-lock.json
generated
@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@nativescript/webpack",
|
||||
"version": "5.0.22",
|
||||
"version": "5.0.23-napi.0",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@nativescript/webpack",
|
||||
"version": "5.0.22",
|
||||
"version": "5.0.23-napi.0",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/core": "^7.0.0",
|
||||
|
@ -59,14 +59,15 @@ if (module.hot) {
|
||||
},
|
||||
};
|
||||
|
||||
const checkAndApply = async () => {
|
||||
// Important: Keep as function and not fat arrow; at the moment hermes does not support them
|
||||
const checkAndApply = async function () {
|
||||
hash = __webpack_require__.h();
|
||||
const modules = await module.hot.check().catch((error) => {
|
||||
return setStatus(
|
||||
hash,
|
||||
'failure',
|
||||
'Failed to check.',
|
||||
error.message || error.stack
|
||||
error.message || error.stack,
|
||||
);
|
||||
});
|
||||
|
||||
@ -82,7 +83,7 @@ if (module.hot) {
|
||||
hash,
|
||||
'failure',
|
||||
'Failed to apply.',
|
||||
error.message || error.stack
|
||||
error.message || error.stack,
|
||||
);
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user