Skip to content

Commit 04295cf

Browse files
author
Mariusz Pasinski
committed
chore: remove redundant feature flag
The plugin has been patched in this branch (rebased)
1 parent fc0a1a0 commit 04295cf

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

packages/host/cpp/AddonRegistry.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,9 @@ std::string_view stripSuffix(const std::string_view &str, const std::string_view
4848
}
4949

5050
void sanitizeLibraryNameInplace(std::string &name) {
51-
#if USING_PATCHED_BABEL_PLUGIN
5251
// Strip the extension (if present)
5352
// NOTE: This is needed when working with updated Babel plugin
5453
name = stripSuffix(name, ".node");
55-
#endif
5654

5755
for (char &c : name) {
5856
if (!std::isalnum(c)) {

packages/host/cpp/AddonRegistry.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55
#include <node_api.h>
66
#include "AddonLoaders.hpp"
77

8-
// HACK: Feature flag that enables backwards-compatible code until PR is finished
9-
#define USING_PATCHED_BABEL_PLUGIN 1
10-
118
namespace callstack::nodeapihost {
129

1310
class AddonRegistry {

0 commit comments

Comments
 (0)