ethers.js/rollup-shims.config.js

23 lines
440 B
JavaScript
Raw Permalink Normal View History

2020-11-15 01:42:36 +03:00
"use strict";
import commonjs from '@rollup/plugin-commonjs';
import resolveNode from "@rollup/plugin-node-resolve";
const plugins = [
resolveNode(),
commonjs()
];
export default {
input: "packages/shims/src/index.js",
output: {
file: `packages/shims/dist/index.js`,
format: "umd",
name: `_ethers_shims`,
exports: "named"
},
context: "window",
treeshake: false,
plugins
};