mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-04-14 06:57:44 +03:00
Bump contracts
This commit is contained in:
@@ -3,35 +3,25 @@ const path = require("path");
|
||||
module.exports = (env, argv) => {
|
||||
return {
|
||||
mode: "production",
|
||||
entry: './src/index.ts',
|
||||
// devtool: 'inline-source-map',
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.ts$/,
|
||||
use: [{
|
||||
loader: 'ts-loader',
|
||||
options: { allowTsInNodeModules: true }
|
||||
}]
|
||||
},
|
||||
],
|
||||
entry: {
|
||||
index: path.resolve(__dirname, "./lib/esm/index.js")
|
||||
},
|
||||
output: {
|
||||
path: path.resolve(__dirname, "lib"), // builds to ./lib
|
||||
path: path.resolve(__dirname, "./lib/umd"), // builds to ./lib/umd/
|
||||
filename: "[name].js", // index.js
|
||||
library: {
|
||||
name: 'orionprotocol', // aka window.myLibrary
|
||||
type: 'umd', // supports commonjs, amd and web browsers
|
||||
},
|
||||
library: "orionprotocol", // aka window.myLibrary
|
||||
libraryTarget: "umd", // supports commonjs, amd and web browsers
|
||||
globalObject: "this"
|
||||
},
|
||||
module: {
|
||||
rules: [{ test: /\.t|js$/, use: "babel-loader" }]
|
||||
},
|
||||
resolve: {
|
||||
extensions: ['.ts', '.js'],
|
||||
// fallback: {
|
||||
// "crypto": require.resolve("crypto-browserify"),
|
||||
// "buffer": require.resolve("buffer/"),
|
||||
// "stream": require.resolve("stream-browserify"),
|
||||
// }
|
||||
fallback: {
|
||||
"crypto": require.resolve("crypto-browserify"),
|
||||
"buffer": require.resolve("buffer/"),
|
||||
"stream": require.resolve("stream-browserify"),
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user