Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/react-native-example-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
working-directory: examples/react-native-example

- name: Run tests
run: npm test -- --passWithNoTests
run: npm test -- --passWithNoTests --forceExit
working-directory: examples/react-native-example
env:
CI: true
13 changes: 13 additions & 0 deletions examples/webview-server/craco.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,19 @@ module.exports = {
},
});

// Handle node: protocol imports (e.g. node:crypto) by stripping the prefix
webpackConfig.plugins.push(
new (require("webpack").NormalModuleReplacementPlugin)(
/^node:/,
(resource) => {
resource.request = resource.request.replace(/^node:/, "");
}
)
);

// Replace Node.js-only @sd-jwt/crypto-nodejs with browser-compatible shim
webpackConfig.resolve.alias["@sd-jwt/crypto-nodejs"] = path.resolve(__dirname, "src/sd-jwt-crypto-shim.js");

// Configure output to put all files in the same directory
webpackConfig.output.filename = '[name].[contenthash:8].js';
webpackConfig.output.chunkFilename = '[name].[contenthash:8].chunk.js';
Expand Down
Loading
Loading