Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

Commit

Permalink
Generate ES5 output with ES6 module format
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Lippai committed Jun 18, 2018
1 parent b6eb05d commit cfcb21a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions build.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ import UglifyES from 'uglify-es';
name: 'asmCrypto',
});

// Legacy browser export, as a bundle
await es5bundle.write({
file: 'asmcrypto.all.es5.mjs',
format: 'es',
});

// NodeJS old
await es5bundle.write({
file: 'asmcrypto.all.js',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "asmcrypto.js",
"version": "2.0.1",
"version": "2.1.0",
"description": "Asm.js implementation of WebCrypto API",
"homepage": "https://github.com/asmcrypto/asmcrypto.js",
"main": "asmcrypto.all.js",
Expand Down

0 comments on commit cfcb21a

Please sign in to comment.