diff --git a/CHANGELOG.md b/CHANGELOG.md index baddff6fe..faba899d8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,10 +15,16 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm _Security_ in case of vulnerabilities. --> -## [Unreleased](https://github.com/o1-labs/snarkyjs/compare/2d2af219c...HEAD) +## [Unreleased](https://github.com/o1-labs/snarkyjs/compare/544489609...HEAD) > No unreleased changes yet +## [0.11.3](https://github.com/o1-labs/snarkyjs/compare/2d2af219c...544489609) + +### Fixed + +- Fix commonJS version of SnarkyJS, again https://github.com/o1-labs/snarkyjs/pull/1006 + ## [0.11.2](https://github.com/o1-labs/snarkyjs/compare/c549e02fa...2d2af219c) ### Fixed diff --git a/package-lock.json b/package-lock.json index 92bde26ba..c4c232ae0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "snarkyjs", - "version": "0.11.2", + "version": "0.11.3", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "snarkyjs", - "version": "0.11.2", + "version": "0.11.3", "license": "Apache-2.0", "dependencies": { "blakejs": "1.2.1", diff --git a/package.json b/package.json index bce90f2b0..37c73fe35 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "snarkyjs", "description": "TypeScript framework for zk-SNARKs and zkApps", - "version": "0.11.2", + "version": "0.11.3", "license": "Apache-2.0", "homepage": "https://github.com/o1-labs/snarkyjs/", "keywords": [ diff --git a/src/build/buildNode.js b/src/build/buildNode.js index 63b8e90d3..6d002f64d 100644 --- a/src/build/buildNode.js +++ b/src/build/buildNode.js @@ -64,7 +64,12 @@ function makeJsooExternal() { name: 'plugin-external', setup(build) { build.onResolve({ filter: isJsoo }, ({ path: filePath, resolveDir }) => ({ - path: path.resolve(resolveDir, filePath), + path: + './' + + path.relative( + path.resolve('.', 'dist/node'), + path.resolve(resolveDir, filePath) + ), external: true, })); },