From 37d1aabfbdaa721650835417539f44990246933a Mon Sep 17 00:00:00 2001 From: "Michael J. Radwin" Date: Sun, 24 Jan 2021 11:43:02 -0800 Subject: [PATCH] Remove "browser" from package.json to improve compatibility with webpack --- package.json | 6 ++++-- rollup.config.js | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index ed201670..31ccee8c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hebcal/core", - "version": "3.2.0", + "version": "3.3.0", "author": "Michael J. Radwin (https://github.com/mjradwin)", "contributors": [ "Eyal Schachter (https://github.com/Scimonster)", @@ -21,9 +21,11 @@ ], "description": "A perpetual Jewish Calendar API", "main": "./dist/index.js", - "browser": "./dist/bundle.js", "module": "./dist/index.mjs", "typings": "hebcal.d.ts", + "engines": { + "node": ">=10.21.0" + }, "repository": { "type": "git", "url": "https://github.com/hebcal/hebcal-es6.git" diff --git a/rollup.config.js b/rollup.config.js index 19e3ef8c..f6108272 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -36,7 +36,7 @@ export default [ input: 'src/index.js', output: [ { - file: pkg.browser, + file: 'dist/bundle.js', format: 'iife', name: 'hebcal', indent: false,