Skip to content

Commit

Permalink
fix(build): separate node, browser, and webpack exports
Browse files Browse the repository at this point in the history
  • Loading branch information
cwillisf committed Mar 9, 2024
1 parent 2c01815 commit 6904a2a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
"name": "scratch-svg-renderer",
"version": "2.0.19",
"description": "SVG renderer for Scratch",
"main": "./src/index.js",
"exports": {
"webpack": "./src/index.js",
"browser": "./dist/web/ScratchSVGRenderer.js",
"node": "./dist/node/ScratchSVGRenderer.js"
},
"scripts": {
"build": "npm run clean && webpack",
"clean": "rimraf ./dist",
Expand Down

0 comments on commit 6904a2a

Please sign in to comment.