From 4e7c90216bc982eaa70e3f6fa7301706f1dd4512 Mon Sep 17 00:00:00 2001 From: Jonathan Staab Date: Mon, 5 Dec 2022 21:46:40 -0800 Subject: [PATCH] Add sourcemaps --- README.md | 6 ++---- vite.config.js | 3 +++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e72cde32..5c30f944 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,7 @@ Bugs - [ ] Prevent tabs from re-mounting (or at least re- animating) - [ ] Go "back" after adding a note -- [ ] When the back button is clicked while a modal is open, close the modal instead -- [ ] uniq is sprinkled all over the place, figure out a better solution for de-duplication +- [ ] uniq and sortBy are sprinkled all over the place, figure out a better solution - [ ] With link/image previews, remove the url from the note body if it's on a separate last line Features @@ -14,8 +13,7 @@ Features - [ ] Permalink note detail (share/permalink button?) - [ ] Add "view thread" page that recurs more deeply - [ ] Fix replies - notes may only include a "root" in its tags -- [x] Link previews https://github.com/Dhaiwat10/svelte-link-preview, https://microlink.io/sdk - - Make them opt-in +- [x] Link previews - [ ] Add notes, follows, likes tab to profile - [ ] Followers, blocks, likes on profile - [ ] Notifications diff --git a/vite.config.js b/vite.config.js index e12503be..521fe616 100644 --- a/vite.config.js +++ b/vite.config.js @@ -4,6 +4,9 @@ import { svelte } from '@sveltejs/vite-plugin-svelte' import { nodePolyfills } from 'vite-plugin-node-polyfills' export default defineConfig({ + build: { + sourcemap: true, + }, resolve: { alias: { src: path.resolve(__dirname, 'src'),