*Update dist
This commit is contained in:
parent
d220d9831e
commit
366ffe1ac9
|
@ -69,7 +69,8 @@ function bundleNativeModulesPlugin() {
|
|||
// Not edited
|
||||
return edits.push([node.start, node.end]);
|
||||
}
|
||||
const findLoady = (0, ast_matcher_1.default)("require('loady')(__str_aName, __any)");
|
||||
for (const matchString of ["require('loady')(__str_aName, __any)"]) {
|
||||
const findLoady = (0, ast_matcher_1.default)(matchString);
|
||||
const loadyMatches = findLoady(ast);
|
||||
if (loadyMatches?.length) {
|
||||
for (const match of loadyMatches) {
|
||||
|
@ -81,7 +82,12 @@ function bundleNativeModulesPlugin() {
|
|||
}
|
||||
}
|
||||
}
|
||||
const findNodeBuildGyp = (0, ast_matcher_1.default)("require('node-gyp-build')(__any)");
|
||||
}
|
||||
for (const matchString of [
|
||||
"require('node-gyp-build')(__any)",
|
||||
"loadNAPI(__any)",
|
||||
]) {
|
||||
const findNodeBuildGyp = (0, ast_matcher_1.default)(matchString);
|
||||
const nodeBuildGypMatches = findNodeBuildGyp(ast);
|
||||
if (nodeBuildGypMatches?.length) {
|
||||
for (const match of nodeBuildGypMatches) {
|
||||
|
@ -99,6 +105,7 @@ function bundleNativeModulesPlugin() {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (edits.length === 0) {
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue