diff --git a/docs/global.html b/docs/global.html
index bdb5af8..bdd48c7 100644
--- a/docs/global.html
+++ b/docs/global.html
@@ -479,7 +479,7 @@
Returns:
diff --git a/docs/index.html b/docs/index.html
index 8af4a12..54d1b49 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -107,7 +107,7 @@ riffChunks.write()
diff --git a/docs/index.js.html b/docs/index.js.html
index a2299a5..a04b668 100644
--- a/docs/index.js.html
+++ b/docs/index.js.html
@@ -189,7 +189,7 @@ index.js
diff --git a/webpack.config.js b/webpack.config.js
index dcbf77d..0ecce19 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -9,6 +9,9 @@ module.exports = {
output: {
filename: './dist/riff-chunks-min.js'
},
+ resolve: {
+ mainFields: ["main"],
+ },
plugins: [
new ClosureCompiler({
options: {