← All tasks
javascriptcure53/DOMPurify #1316Not a task: already works

Source maps refer to non-existant files in v3.4.1

envgap__cure53__DOMPurify-1316

01 / FAILURE SIGNATURE

As reported upstream

No identifying execution failure has been captured.
Not a benchmark task.
  • The project already builds and runs before the fix, so there is nothing to repair.

02 / ENVIRONMENT RECIPE

Base commit
7ac696c8072132e9c5512f402edc49bc13414104
Manifest
package.json
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

cure53/DOMPurify #1316 · read the original issue
i use a webpack setup that balks loudly when this happens

i think v3.4.1 changed rollup plugin for typescript builds which might have caused this

possible fix

```
diff --git a/package.json b/package.json
index c12de53..42be4ee 100644
--- a/package.json
+++ b/package.json
@@ -47,7 +47,8 @@
     "./dist/purify.js": "./dist/purify.js"
   },
   "files": [
-    "dist"
+    "dist",
+    "src"
   ],
   "xo": {
     "semicolon": true,
```

there may be other alternatives also such as not publishing source maps. I often just do that though (include src) 
Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]