Skip to content

Commit

Permalink
fix(source maps): enable source map inlining
Browse files Browse the repository at this point in the history
Some bundlers have trouble finding sources without inlining.
  • Loading branch information
jonasgloning committed May 13, 2022
1 parent 8fa864b commit 97a724b
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,19 @@
"source": "lib/exports.ts"
},
"main": {
"source": "lib/exports.ts"
"source": "lib/exports.ts",
"sourceMap": {
"inlineSources": true
}
},
"module": {
"source": "lib/exports.ts",
"includeNodeModules": [
"eventemitter3"
]
],
"sourceMap": {
"inlineSources": true
}
},
"browser-minified": {
"includeNodeModules": true,
Expand All @@ -145,7 +151,7 @@
"scripts": {
"check": "tsc --noEmit",
"watch": "parcel watch",
"build": "rm -rf dist && parcel build && ln -s dist/peerjs.cjs dist/peerjs.js && ln -s dist/peerjs.min.cjs dist/peerjs.min.js",
"build": "rm -rf dist && parcel build && cp dist/peerjs.cjs dist/peerjs.js && cp dist/peerjs.min.cjs dist/peerjs.min.js",
"prepublishOnly": "npm run build",
"test": "mocha -r ts-node/register -r jsdom-global/register test/**/*.ts",
"format": "prettier --write .",
Expand Down

0 comments on commit 97a724b

Please sign in to comment.