Skip to content

Commit

Permalink
feat: replaced some files with the empty one (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorShadurin authored May 13, 2024
1 parent 72f0806 commit 0dc503a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions src/emptyModule.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// This is an empty module used as a stub for externalized files.
module.exports = {}
12 changes: 6 additions & 6 deletions webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,12 @@ const base = async (env?: Partial<WebpackEnvParams>): Promise<Configuration> =>

return {
externals: {
'@scure/bip39/wordlists/korean': 'koreanWordlist',
'@scure/bip39/wordlists/japanese': 'japaneseWordlist',
'@scure/bip39/wordlists/french': 'frenchWordlist',
'@scure/bip39/wordlists/italian': 'italianWordlist',
'@scure/bip39/wordlists/spanish': 'spanishWordlist',
'@scure/bip39/wordlists/czech': 'czechWordlist',
'@scure/bip39/wordlists/korean': Path.resolve(__dirname, 'src/emptyModule.js'),
'@scure/bip39/wordlists/japanese': Path.resolve(__dirname, 'src/emptyModule.js'),
'@scure/bip39/wordlists/french': Path.resolve(__dirname, 'src/emptyModule.js'),
'@scure/bip39/wordlists/italian': Path.resolve(__dirname, 'src/emptyModule.js'),
'@scure/bip39/wordlists/spanish': Path.resolve(__dirname, 'src/emptyModule.js'),
'@scure/bip39/wordlists/czech': Path.resolve(__dirname, 'src/emptyModule.js'),
},
bail: Boolean(isProduction),
mode: env?.mode || 'development',
Expand Down

0 comments on commit 0dc503a

Please sign in to comment.