forked from aws-amplify/amplify-js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit fixes a remaining handful of sourcemap issues remaining after my previous sourcemap-related PRs aws-amplify#3059 and aws-amplify#2680: * adds mapping for new folders: predictions, datastore, amplify-ui-angular, amplify-ui-components, amplify-ui-react, amplify-ui-storybook, amplify-ui-vue, api-graphql, api-rest * removes webpack:/// prefix from oddball, non-file paths emitted by webpack (e.g. `webpack/universalModuleDefinition` or `fs (ignored)`). This prevents warnings from source-map-loader and related tools. * The same code that fixes the "weird path" fix above also fixes a problem with aws-amplify#3059 where it would pre-pend webpack:/// as a fall-through case, even when the path was already a valid relative URL and didn't need that prefix. Also, according to @loganfsmyth (the most knowledgeable sourcemap expert I know), OSS library sourcemaps should always use relative URLs and should never use the webpack:/// prefix. Therefore, this PR removes that prefix. * updates the amplify-ui package's webpack config to emit sourcemaps * fixes paths to CSS files in the sourcemaps of amplify-ui package * adds sourcemaps for aws-amplify-vue package
- Loading branch information
1 parent
53be43d
commit 02b1592
Showing
4 changed files
with
42 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
module.exports = { | ||
presets: [['@vue/app', { useBuiltIns: 'entry' }]], | ||
sourceMaps: true, | ||
inputSourceMap: true, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters