Actually output source maps
This commit is contained in:
parent
c5c6440c5a
commit
10ecf63fef
@ -1,20 +0,0 @@
|
|||||||
import { config as dotenv } from "dotenv";
|
|
||||||
import esbuild from "esbuild";
|
|
||||||
import { sentryEsbuildPlugin } from "@sentry/esbuild-plugin";
|
|
||||||
|
|
||||||
dotenv();
|
|
||||||
|
|
||||||
const hasToken = typeof process.env.SENTRY_AUTH_TOKEN === "string";
|
|
||||||
|
|
||||||
esbuild.build({
|
|
||||||
plugins: hasToken
|
|
||||||
? [
|
|
||||||
sentryEsbuildPlugin({
|
|
||||||
authToken: process.env.SENTRY_AUTH_TOKEN,
|
|
||||||
org: process.env.SENTRY_ORG,
|
|
||||||
project: process.env.SENTRY_PROJECT,
|
|
||||||
}),
|
|
||||||
]
|
|
||||||
: undefined,
|
|
||||||
sourcemap: true,
|
|
||||||
});
|
|
@ -4,9 +4,9 @@
|
|||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "remix build",
|
"build": "remix build --sourcemap",
|
||||||
"format": "prettier -wc .",
|
"format": "prettier -wc .",
|
||||||
"publish": "remix build && wrangler pages deploy public"
|
"publish": "remix build --sourcemap && wrangler pages deploy public"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@chakra-ui/react": "^2.8.2",
|
"@chakra-ui/react": "^2.8.2",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user