fix: remove top-level node:path imports to fix browser bundler compatibility

- Convert static imports to dynamic imports with environment checks
- Prevents 'Module externalized for browser compatibility' errors
- Maintains Node.js functionality while enabling browser usage
This commit is contained in:
David Snelling 2025-09-17 17:20:05 -07:00
parent 0cde950c03
commit 340123b3b6
3 changed files with 18 additions and 13 deletions

4
package-lock.json generated
View file

@ -1,12 +1,12 @@
{
"name": "@soulcraft/brainy",
"version": "3.8.1",
"version": "3.8.2",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@soulcraft/brainy",
"version": "3.8.1",
"version": "3.8.2",
"license": "MIT",
"dependencies": {
"@aws-sdk/client-s3": "^3.540.0",