InversifyJS icon indicating copy to clipboard operation
InversifyJS copied to clipboard

chore(): include src to fix sourcemaps

Open chyzwar opened this issue 2 years ago • 1 comments

Include src folder in published package. This is require to fix source maps on webpack and simmilar.

I made this change few weeks ago but it was reversed https://github.com/inversify/InversifyJS/pull/1366

chyzwar avatar Nov 05 '21 22:11 chyzwar


pp_1    | WARNING in ../../node_modules/inversify/es/utils/js.js
app_1    | Module Warning (from ../../node_modules/source-map-loader/dist/cjs.js):
app_1    | Failed to parse source map from '/project/node_modules/inversify/src/utils/js.ts' file: Error: ENOENT: no such file or directory, open '/project/node_modules/inversify/src/utils/js.ts'
app_1    |  @ ../../node_modules/inversify/es/annotation/decorator_utils.js 3:0-53 26:24-46
app_1    |  @ ../../node_modules/inversify/es/inversify.js 6:0-69 6:0-69 21:0-56 21:0-56
app_1    |  @ ../../node_modules/@woodmac-lens/app/esm/enhancer.js 2:0-38 41:59-68 42:27-36
app_1    |  @ ../../node_modules/@woodmac-lens/app/esm/index.js 20:0-49 20:0-49
app_1    |  @ ./src/externals.ts 6:0-49 18:0-52 27:23-37 39:35-47
app_1    | 
app_1    | WARNING in ../../node_modules/inversify/es/utils/serialization.js
app_1    | Module Warning (from ../../node_modules/source-map-loader/dist/cjs.js):
app_1    | Failed to parse source map from '/project/node_modules/inversify/src/utils/serialization.ts' file: Error: ENOENT: no such file or directory, open '/project/node_modules/inversify/src/utils/serialization.ts'
app_1    |  @ ../../node_modules/inversify/es/inversify.js 23:0-69 23:0-69
app_1    |  @ ../../node_modules/@woodmac-lens/app/esm/enhancer.js 2:0-38 41:59-68 42:27-36
app_1    |  @ ../../node_modules/@woodmac-lens/app/esm/index.js 20:0-49 20:0-49
app_1    |  @ ./src/externals.ts 6:0-49 18:0-52 27:23-37 39:35-47
app_1    | 
app_1    | 53 warnings have detailed information that is not shown.
app_1    | Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.
app_1    | 

See example of error

chyzwar avatar Feb 09 '22 10:02 chyzwar