isaacs / minimatch

a glob matcher in javascript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unusable source maps written to `dist/`

AprilArcus opened this issue · comments

The source map URLs written to dist take the form:

//# sourceMappingURL=brace-expressions.js.map

and the corresponding file contains a reference to the corresponding source file src/**/*.ts.

{
  "version": 3,
  "file":"brace-expressions.js",
  "sourceRoot":"",
  "sources": ["../../src/brace-expressions.ts"],
  ...
}

since this is not included in the package as published to npm, the source map cannot be consumed by e.g. webpack's source-map-loader, and if not so consumed or stripped out, produce console errors in development mode.

My team encountered a similar issue in ag-grid last year, for rererence: ag-grid/ag-grid#5039

commented

This should be fixed in fc3fa85, published on 7.4.3