Minor updates #1
2
dist/merkleTreeWorker.umd.js
vendored
2
dist/merkleTreeWorker.umd.js
vendored
@ -1,3 +1,5 @@
|
||||
globalThis.process = { browser: true, env: {}, };
|
||||
|
||||
(function webpackUniversalModuleDefinition(root, factory) {
|
||||
if(typeof exports === 'object' && typeof module === 'object')
|
||||
module.exports = factory();
|
||||
|
2
dist/merkleTreeWorker.umd.min.js
vendored
2
dist/merkleTreeWorker.umd.min.js
vendored
File diff suppressed because one or more lines are too long
@ -1,3 +1,4 @@
|
||||
const { BannerPlugin } = require('webpack');
|
||||
const path = require('path');
|
||||
const NodePolyfillPlugin = require('node-polyfill-webpack-plugin');
|
||||
|
||||
@ -82,6 +83,10 @@ module.exports = [
|
||||
},
|
||||
plugins: [
|
||||
new NodePolyfillPlugin(),
|
||||
new BannerPlugin({
|
||||
banner: 'globalThis.process = { browser: true, env: {}, };\n',
|
||||
raw: true,
|
||||
}),
|
||||
],
|
||||
resolve: {
|
||||
extensions: ['.tsx', '.ts', '.js'],
|
||||
@ -106,6 +111,10 @@ module.exports = [
|
||||
},
|
||||
plugins: [
|
||||
new NodePolyfillPlugin(),
|
||||
new BannerPlugin({
|
||||
banner: 'globalThis.process = { browser: true, env: {}, };',
|
||||
raw: true,
|
||||
}),
|
||||
],
|
||||
resolve: {
|
||||
extensions: ['.tsx', '.ts', '.js'],
|
||||
|
Loading…
x
Reference in New Issue
Block a user