From c55a7bed781b4cff132d18d778bf16268ce34f01 Mon Sep 17 00:00:00 2001 From: Paul Falgout Date: Thu, 19 Sep 2019 16:19:09 +0900 Subject: [PATCH] fix: use cjs for browser fields We should not be using pre-built files for the `browser`. Resolves https://github.com/wycats/handlebars.js/issues/1553 --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 5a0e08475..607f4e169 100644 --- a/package.json +++ b/package.json @@ -64,8 +64,8 @@ "main": "lib/index.js", "types": "types/index.d.ts", "browser": { - ".": "./dist/handlebars.min.js", - "./runtime": "./dist/handlebars.runtime.min.js" + ".": "./dist/cjs/handlebars.js", + "./runtime": "./dist/cjs/handlebars.runtime.js" }, "bin": { "handlebars": "bin/handlebars"