We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 582cc5e commit f8fac2aCopy full SHA for f8fac2a
.npmignore
@@ -4,6 +4,7 @@
4
node_modules/
5
npm-debug.log
6
7
+lib/
8
test/
9
10
.travis.yml
package.json
@@ -2,6 +2,7 @@
2
"name": "koa-proxies",
3
"description": "Http Proxy Middleware for Koa@2.x/next",
"main": "dist/koa-proxies.js",
+ "jsnext:main": "dist/koa-proxies.es2015.js",
"scripts": {
"build": "rimraf dist/** && NODE_ENV=production node rollup.config.js",
"build:dev": "node rollup.config.js",
rollup.config.js
@@ -24,4 +24,11 @@ rollup.rollup({
24
format: 'cjs',
25
dest: pkg['main']
26
})
27
+
28
+ if (process.env.NODE_ENV === 'production') {
29
+ bundle.write({
30
+ dest: pkg['jsnext:main'],
31
+ format: 'es'
32
+ })
33
+ }
34
0 commit comments