Skip to content

Commit

Permalink
Merge pull request #53 from ar-io/PE-6050-arweave-import
Browse files Browse the repository at this point in the history
fix(arweave): default to the arweave node import to avoid issues with…
  • Loading branch information
dtfiedler authored Apr 25, 2024
2 parents 7f285bb + 4bb9c78 commit 1fcf12f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</script>

<script type="module" defer>
import { ArIO } from 'https://unpkg.com/@ar.io/sdk@1.0.0';
import { ArIO } from '../../bundles/web.bundle.min.js';

const arIO = ArIO.init();

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"prepare": "husky install",
"example:mjs": "yarn build:esm && node examples/node/index.mjs",
"example:cjs": "yarn build:cjs && node examples/node/index.cjs",
"example:web": "yarn build:web && cp -r bundles/* examples/web && http-server --port 8080 --host -o examples/web"
"example:web": "yarn build:web && http-server --port 8080 --host -o examples/web"
},
"devDependencies": {
"@commitlint/cli": "^17.1.2",
Expand Down
5 changes: 4 additions & 1 deletion tsconfig.web.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"extends": "./tsconfig.json",
"include": ["src/web", "src/common", "src/utils"],
"compilerOptions": {
"outDir": "./lib/web"
"outDir": "./lib/web",
"paths": {
"arweave": ["./node_modules/arweave/node/index.js"]
}
}
}

0 comments on commit 1fcf12f

Please sign in to comment.