Skip to content

Commit

Permalink
fix(build): publish source files
Browse files Browse the repository at this point in the history
The source maps used to contain the source code (via the "sourcesContent" property).

To allow for users to set breakpoints easier, publish the source files instead.

Closes #335
  • Loading branch information
aleclarson committed Mar 19, 2019
1 parent 8b33b98 commit fb92884
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion bili.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ const config: Config = {
output: {
format: ["cjs", "umd", "esm"],
moduleName: "immer",
sourceMap: true
sourceMap: true,
sourceMapExcludeSources: true
},
babel: {
// Replace babel-preset-env with buble
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
},
"homepage": "https://github.com/mweststrate/immer#readme",
"files": [
"dist/"
"dist",
"src"
],
"devDependencies": {
"@babel/cli": "^7.2.3",
Expand All @@ -50,7 +51,7 @@
"@types/jest": "^24.0.11",
"babel-jest": "^24.4.0",
"babel-preset-modern-browsers": "^13.1.0",
"bili": "^4.2.5",
"bili": "^4.7.0",
"coveralls": "^3.0.0",
"cpx": "^1.5.0",
"cross-env": "^5.1.3",
Expand Down

0 comments on commit fb92884

Please sign in to comment.