From 7df931b2ca7a0a45e266dc64c50ca3321ce78ad8 Mon Sep 17 00:00:00 2001 From: Victoria French Date: Tue, 28 Feb 2017 11:44:13 -0600 Subject: [PATCH] removing the `module` directive and replacing it with the rollup `jsnext:main` directive. webpack and browserify do not read this directive. --- CHANGELOG.md | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 29eb22f..842cded 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] +* 'module' has been replaced with 'jsnext:main' to support both rollup and webpack 2 ## [3.0.2] ### Changed diff --git a/package.json b/package.json index 23b385c..50331c7 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "homepage": "https://github.com/gf3/moment-range", "bugs": "https://github.com/gf3/moment-range/issues", "main": "./dist/moment-range", - "module": "lib/moment-range.js", + "jsnext:main": "lib/moment-range.js", "version": "3.0.2", "engines": { "node": "*"