mirror of
				https://github.com/Xahau/xahau.js.git
				synced 2025-11-04 04:55:48 +00:00 
			
		
		
		
	build: reduce webpack size of bip39 (#1747)
* remove non-english wordlists from bip39 * add webpack change to tests * add bundlephobia badge
This commit is contained in:
		@@ -3,6 +3,7 @@
 | 
			
		||||
A JavaScript/TypeScript library for interacting with the XRP Ledger
 | 
			
		||||
 | 
			
		||||
[](https://www.npmjs.org/package/xrpl)
 | 
			
		||||

 | 
			
		||||
 | 
			
		||||
This is the recommended library for integrating a JavaScript/TypeScript app with the XRP Ledger, especially if you intend to use advanced functionality such as IOUs, payment paths, the decentralized exchange, account settings, payment channels, escrows, multi-signing, and more.
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -27,6 +27,10 @@ function webpackForTest(testFileName) {
 | 
			
		||||
    plugins: [
 | 
			
		||||
      new webpack.ProvidePlugin({ process: 'process/browser' }),
 | 
			
		||||
      new webpack.ProvidePlugin({ Buffer: ['buffer', 'Buffer'] }),
 | 
			
		||||
      new webpack.IgnorePlugin({
 | 
			
		||||
        resourceRegExp: /^\.\/wordlists\/(?!english)/,
 | 
			
		||||
        contextRegExp: /bip39\/src$/,
 | 
			
		||||
      }),
 | 
			
		||||
    ],
 | 
			
		||||
    module: {
 | 
			
		||||
      rules: [
 | 
			
		||||
 
 | 
			
		||||
@@ -26,6 +26,10 @@ function getDefaultConfiguration() {
 | 
			
		||||
      ),
 | 
			
		||||
      new webpack.ProvidePlugin({ process: 'process/browser' }),
 | 
			
		||||
      new webpack.ProvidePlugin({ Buffer: ['buffer', 'Buffer'] }),
 | 
			
		||||
      new webpack.IgnorePlugin({
 | 
			
		||||
        resourceRegExp: /^\.\/wordlists\/(?!english)/,
 | 
			
		||||
        contextRegExp: /bip39\/src$/,
 | 
			
		||||
      }),
 | 
			
		||||
    ],
 | 
			
		||||
    module: {
 | 
			
		||||
      rules: [],
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user