diff --git a/scripts/rollup/plugins/index.js b/scripts/rollup/plugins/index.js
index <HASH>..<HASH> 100644
--- a/scripts/rollup/plugins/index.js
+++ b/scripts/rollup/plugins/index.js
@@ -11,7 +11,7 @@ module.exports = function(version, options) {
     aliasPlugin,
     nodeResolve({
       extensions: ['.ts', '.js', '.json'],
-      jsnext: true
+      mainFields: ['module', 'main']
     }),
     commonjs({
       include: 'node_modules/**'
Replaced deprecated rollup node-resolve option.jsnext with mainfield setting