From aba88e30ca932b60334bc3fc90a693e5d8c6b3a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Cs=C3=A1sz=C3=A1r?= Date: Tue, 20 Apr 2021 17:23:06 +0200 Subject: [PATCH] Point browser to ES5 entry point for better Webpack support according to the `web` order specified here: https://webpack.js.org/configuration/resolve/#resolvemainfields --- package-lock.json | 4 ++-- package.json | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 111d24a..458e8e0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,11 @@ { "name": "scroll-to-fragment", - "version": "1.0.11", + "version": "1.0.12", "lockfileVersion": 2, "requires": true, "packages": { "": { - "version": "1.0.11", + "version": "1.0.12", "license": "MIT", "devDependencies": { "@types/history": "^4.7.8", diff --git a/package.json b/package.json index 641a0e7..1731811 100644 --- a/package.json +++ b/package.json @@ -1,4 +1,5 @@ { + "browser": "dist/index.js", "description": "Make single page apps scroll according to the current URL hash.", "devDependencies": { "@types/history": "^4.7.8", @@ -45,5 +46,5 @@ "watch": "karma start" }, "types": "dist/index.d.ts", - "version": "1.0.11" + "version": "1.0.12" }