diff --git a/.babelrc b/.babelrc index c13c5f6..002b4aa 100644 --- a/.babelrc +++ b/.babelrc @@ -1,3 +1,3 @@ { - "presets": ["es2015"] + "presets": ["env"] } diff --git a/package.json b/package.json index 6af7572..3497f8e 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "react-unity-webgl", "version": "6.0.0", "description": "A Unity WebGL component for your React application", - "main": "lib/react-unity-webgl.js", + "main": "lib/index.js", "scripts": { "compile": "babel --presets react source --out-dir lib", "prepublish": "npm run compile"