Add sourcemap-loader to build step (#535)

* Add sourcemap-loader to build step

* .
This commit is contained in:
Jason Laster 2022-01-25 01:57:24 -08:00 committed by GitHub
parent dd1fb73876
commit 0ff6f0628f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 11994 additions and 11422 deletions

View file

@ -46,6 +46,12 @@ module.exports = withPWA(
})
)
config.module.rules.push({
test: /.*packages.*\.js$/,
use: ['source-map-loader'],
enforce: 'pre',
})
if (
SENTRY_DSN &&
SENTRY_ORG &&

View file

@ -67,6 +67,7 @@
"prettier": "^2.4.1",
"pretty-quick": "^3.1.2",
"resize-observer-polyfill": "^1.5.1",
"source-map-loader": "^3.0.1",
"tslib": "^2.3.0",
"typedoc": "^0.22.3",
"typescript": "^4.5.2"

View file

@ -28,6 +28,7 @@ async function main() {
tsconfig: './tsconfig.json',
external: Object.keys(pkg.dependencies).concat(Object.keys(pkg.peerDependencies)),
metafile: true,
sourcemap: true,
})
const esmResult = esbuild.buildSync({
@ -42,6 +43,7 @@ async function main() {
jsxFragment: 'React.Fragment',
external: Object.keys(pkg.dependencies).concat(Object.keys(pkg.peerDependencies)),
metafile: true,
sourcemap: true,
})
const esmSize = Object.values(esmResult.metafile.outputs).reduce(

23407
yarn.lock

File diff suppressed because it is too large Load diff