Skip to content

Commit bce2df2

Browse files
authored
⚙️ create an esm build (#65)
* build: add an esm build * v1.1.0-0 * v1.1.0
1 parent 6d2275f commit bce2df2

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"name": "tree-crawl",
3-
"version": "1.0.5",
3+
"version": "1.1.0",
44
"description": "Agnostic tree traversal library.",
55
"author": "Nicolas Gryman <ngryman@gmail.com> (http://ngryman.sh/)",
66
"license": "MIT",
77
"repository": "ngryman/tree-crawl",
88
"main": "dist/tree-crawl.js",
99
"browser": "dist/tree-crawl.js",
10-
"module": "index.js",
10+
"module": "dist/tree-crawl.ems.js",
1111
"jsnext:main": "index.js",
1212
"types": "index.d.ts",
1313
"engines": {

rollup.config.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,13 @@ import cleanup from 'rollup-plugin-cleanup'
66
export default {
77
name: 'crawl',
88
input: 'index.js',
9-
output: {
9+
output: [{
1010
format: 'umd',
1111
file: 'dist/tree-crawl.js'
12-
},
12+
}, {
13+
format: 'es',
14+
file: 'dist/tree-crawl.esm.js'
15+
}],
1316
plugins: [
1417
resolve({
1518
jsnext: true,

0 commit comments

Comments
 (0)