Skip to content

Commit

Permalink
Add exports field to package.json (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenzzy authored May 20, 2020
1 parent 530ded7 commit 74d4f83
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased](unreleased)

- Add `unpkg`, `jsdelivr` and `exports` fields to package.json
([#18](https://github.com/kriasoft/hyperapp-render/pull/18)).

## [3.2.0] - 2020-05-14

- Add support for `Lazy` component from Hyperapp v2
Expand Down
12 changes: 12 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,24 @@
"module": "node/module.js",
"types": "src/node.d.ts",
"esnext": "src/node.js",
"unpkg": "hyperapp-render.min.js",
"jsdelivr": "hyperapp-render.min.js",
"browser": {
"node/index.js": "./browser/index.js",
"node/module.js": "./browser/module.js",
"src/node.d.ts": "./src/browser.d.ts",
"src/node.js": "./src/browser.js"
},
"exports": {
"node": {
"import": "./node/module.js",
"require": "./node/index.js"
},
"default": {
"import": "./browser/module.js",
"require": "./browser/index.js"
}
},
"dependencies": {
"@types/node": "*"
},
Expand Down

0 comments on commit 74d4f83

Please sign in to comment.