Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning about missing sourcemap when using webpack5 #25

Open
oskarwrobel opened this issue Feb 7, 2022 · 0 comments
Open

Warning about missing sourcemap when using webpack5 #25

oskarwrobel opened this issue Feb 7, 2022 · 0 comments

Comments

@oskarwrobel
Copy link

oskarwrobel commented Feb 7, 2022

Hi,

I'm wondering if it would be possible to add

"inlineSources": true,

to tsconfig.json file?

It won't affect source code at all but will satisfy webpack5 complaints about source map files, however, it will increase the size of source maps.

Currently, bundling the following code:

import { convertTokens } from '@date-fns/upgrade/v2/convertTokens';

...

produces this warning:

WARNING in ./node_modules/@date-fns/upgrade/v2/convertTokens/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/Users/owrobel/projects/webpack-demo/node_modules/@date-fns/src/v2/convertTokens/index.ts' file: Error: ENOENT: no such file or directory, open '/Users/owrobel/projects/webpack-demo/node_modules/@date-fns/src/v2/convertTokens/index.ts'
 @ ./src/index.js 1:0-67 3:12-25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant