diff --git a/rollup.config.js b/rollup.config.js
index <HASH>..<HASH> 100644
--- a/rollup.config.js
+++ b/rollup.config.js
@@ -74,32 +74,25 @@ const config = [
     ],
   },
 
-  // esm minify
-  {
-    external: production 
-      ? external.concat(nodeModule)
-      : nodeModule,
-    input: pkg.module,
-    plugins: production
-      ? [ uglify(uglifyOpts) ]
-      : [
-        resolve({
-          browser: true,
-          jsnext: true,
-          main: true,
-        }),
-        commonjs(),
-      ],
-    output: {
-      banner,
-      file: parseName(pkg.es2015) + '.min.js',
-      format: 'es',
-      sourcemap: production ? true : false,
-    },
-  },
-
 ]
 
+if (production) {
+  config.push(
+    // esm minify
+    {
+      external: external.concat(nodeModule),
+      input: pkg.module,
+      plugins: [ uglify(uglifyOpts) ],
+      output: {
+        banner,
+        file: parseName(pkg.es2015) + '.min.js',
+        format: 'es',
+        sourcemap: true,
+      },
+    },
+  )
+}
+
 if (pkg.browser) {
   config.push(
     // umd bundle min
chore: only compile esm.min.js during production