fix bundle issue, support both node and browser (#4)
* fix bundle issue, support both node and browser * version bump * update version as fixmaster^2
parent
7d8ab5df15
commit
a84e8615f7
@ -0,0 +1,12 @@
|
|||||||
|
import commonjs from '@rollup/plugin-commonjs';
|
||||||
|
import { nodeResolve } from '@rollup/plugin-node-resolve';
|
||||||
|
|
||||||
|
export default {
|
||||||
|
input: 'index.js',
|
||||||
|
output: {
|
||||||
|
dir: 'dist',
|
||||||
|
format: 'umd',
|
||||||
|
name: 'namehash'
|
||||||
|
},
|
||||||
|
plugins: [commonjs(), nodeResolve({ browser: true })]
|
||||||
|
};
|
Loading…
Reference in new issue