Fix native bindings path for production build
- Change index.cjs to index.js in bindings to match build output - Resolves module loading error in production environment
This commit is contained in:
parent
e28c37b8da
commit
53400fed17
|
@ -3,7 +3,7 @@ import { createRequire } from 'module';
|
||||||
const require = createRequire(import.meta.url);
|
const require = createRequire(import.meta.url);
|
||||||
|
|
||||||
// Require the CommonJS module
|
// Require the CommonJS module
|
||||||
const nativeBindings = require('../../index.cjs');
|
const nativeBindings = require('../../index.js');
|
||||||
|
|
||||||
export const {
|
export const {
|
||||||
getChurchName,
|
getChurchName,
|
||||||
|
|
Loading…
Reference in a new issue