-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: test bundling taquito-beacon-wallet in ci (#2744)
Co-authored-by: Davis Sawali <[email protected]>
- Loading branch information
1 parent
9f151ec
commit 9f1718b
Showing
4 changed files
with
56 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/* eslint-disable @typescript-eslint/no-var-requires */ | ||
const webpack = require('webpack'); | ||
const path = require('path'); | ||
|
||
module.exports = { | ||
entry: { | ||
"taquito_beacon_wallet": ['./src/taquito-beacon-wallet.ts'] | ||
}, | ||
mode: 'production', | ||
module: { | ||
rules: [ | ||
{ | ||
test: /\.ts$/, | ||
use: 'ts-loader', | ||
exclude: /node_modules/ | ||
} | ||
] | ||
}, | ||
devtool: 'source-map', | ||
resolve: { | ||
extensions: ['.tsx', '.ts', '.js'], | ||
modules: ['node_modules'], | ||
fallback: { | ||
fs: false, | ||
stream: require.resolve("stream-browserify") | ||
} | ||
}, | ||
output: { | ||
filename: '[name].js', | ||
path: path.resolve(__dirname, 'dist'), | ||
library: ['[name]'], | ||
libraryTarget: "var" | ||
}, | ||
plugins: [ | ||
new webpack.ProvidePlugin({ Buffer: ['buffer', 'Buffer'] }) | ||
] | ||
}; |