Skip to content

Commit

Permalink
fix: bundle crypto-js instead of importing it
Browse files Browse the repository at this point in the history
this makes index.mjs running better
  • Loading branch information
tefkah committed Dec 12, 2023
1 parent d08e13d commit a17302c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/client.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
import SHA3 from 'crypto-js/sha3'
import encHex from 'crypto-js/enc-hex'
import SHA3 from 'crypto-js/sha3.js'
import encHex from 'crypto-js/enc-hex.js'
import { createClient } from 'utils/api/client.js'

import type { ExportFormats, WorkerTaskExportOutput } from './types.js'
Expand Down
1 change: 1 addition & 0 deletions tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const config = defineConfig({
entry: ['src'],
minify: false,
sourcemap: true,
noExternal: ['crypto-js'],
treeshake: {
preset: 'smallest',
},
Expand Down

0 comments on commit a17302c

Please sign in to comment.