Using [email protected], run the following bash commands:
mkdir source-map-example
cd source-map-example/
yarn init -y
yarn add [email protected]
echo "import { Auth } from 'aws-amplify';" > index.js
parcel start index.js
You get a string of warnings like:
鈿狅笍 Could not load source file "../src/index.ts" in source map of "node_modules/aws-amplify/lib/index.js".
This is expected because that repo includes the source maps, but not the actual source. Is there, however, a way for me to turn off source-map-loading for that module?
I don鈥檛 see an option to set excludes on source map loading.
It appears in webpack, people use the source-map-loader plugin and with that, they can specify something like this:
exclude: '/node_modules/aws-amplify'
It just leads to a really noisy console and makes me fearful that I鈥檒l miss actual important warnings or errors.
Setup in configuration.
| Software | Version(s) |
| ---------------- | ---------- |
| Parcel | 1.10.1 |
| Node | v10.11.0 |
| Yarn | 1.6.0 |
| Operating System | Mac OSX 10.13.6 |
You could use parcel --log-level 1.
As previously noted, this needs to be fixed by the published package (aws-amplify in this case).
@mischnic Could you link to the "previously noted"?
Sorry to open a closed issue.
It is in reference to the OP Possible Solution section.
Most helpful comment
You could use
parcel --log-level 1.As previously noted, this needs to be fixed by the published package (
aws-amplifyin this case).