mirror of
https://github.com/iden3/js-crypto.git
synced 2026-01-15 00:38:30 -05:00
20 lines
513 B
JavaScript
20 lines
513 B
JavaScript
const NodeModulesPolyfills = require('@esbuild-plugins/node-modules-polyfill').default;
|
|
const NodeGlobalPolyfills = require('@esbuild-plugins/node-globals-polyfill').default;
|
|
const pkg = require('../package.json');
|
|
const esmConfig = {
|
|
plugins: [
|
|
NodeGlobalPolyfills({
|
|
process: true,
|
|
buffer: true
|
|
}),
|
|
NodeModulesPolyfills()
|
|
],
|
|
entryPoints: ['src/index.ts'],
|
|
bundle: true,
|
|
sourcemap: true,
|
|
target: 'esnext',
|
|
outfile: pkg.module,
|
|
format: 'esm',
|
|
};
|
|
module.exports = esmConfig;
|