We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b2bb47 commit 4d7f440Copy full SHA for 4d7f440
package.json
@@ -4,7 +4,8 @@
4
"version": "0.2.0",
5
"author": "Vlad Shcherbin <vlad.shcherbin@gmail.com>",
6
"repository": "vladshcherbin/rollup-plugin-delete",
7
- "main": "dist/index.js",
+ "main": "dist/index.cjs.js",
8
+ "module": "dist/index.esm.js",
9
"scripts": {
10
"lint": "eslint src",
11
"build": "rollup -c",
rollup.config.js
@@ -2,10 +2,16 @@ import babel from 'rollup-plugin-babel'
2
3
export default {
input: 'src/index.js',
- output: {
- file: 'dist/index.js',
- format: 'cjs'
- },
+ output: [
+ {
+ file: 'dist/index.cjs.js',
+ format: 'cjs'
+ },
+ file: 'dist/index.esm.js',
12
+ format: 'esm'
13
+ }
14
+ ],
15
plugins: [
16
babel({
17
presets: [['@babel/preset-env', { targets: { node: 8 } }]]
0 commit comments