Skip to content

Commit

Permalink
chore: bump rollup versions, resolve some rollbar warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesdabbs committed May 6, 2023
1 parent bad8982 commit 8e83e46
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 29 deletions.
12 changes: 6 additions & 6 deletions packages/viewer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"build": "rollup -c",
"cy:open": "cypress open",
"cy:run": "cypress run",
"dev": "rollup -c -w",
"dev": "rollup -c --watch",
"start": "sirv public --single",
"test": "vitest",
"test:cov": "vitest --coverage",
Expand All @@ -33,21 +33,21 @@
"unist-util-visit": "^4.1.2"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^24.0.1",
"@rollup/plugin-commonjs": "^24.1.0",
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-node-resolve": "^15.0.1",
"@rollup/plugin-node-resolve": "^15.0.2",
"@rollup/plugin-replace": "^5.0.2",
"@rollup/plugin-typescript": "^11.0.0",
"@rollup/plugin-typescript": "^11.1.0",
"@tsconfig/svelte": "^3.0.0",
"@types/hyperscript": "0.0.4",
"@types/katex": "^0.16.0",
"@types/page": "^1.8.0",
"@types/unist": "^2.0.3",
"cypress": "^12.7.0",
"rollup": "^3.18.0",
"rollup-plugin-copy": "^3.3.0",
"rollup-plugin-copy": "^3.4.0",
"rollup-plugin-css-only": "^4.3.0",
"rollup-plugin-livereload": "^2.0.0",
"rollup-plugin-livereload": "^2.0.5",
"rollup-plugin-node-globals": "^1.4.0",
"rollup-plugin-node-polyfills": "^0.2.1",
"rollup-plugin-svelte": "^7.1.4",
Expand Down
19 changes: 11 additions & 8 deletions packages/viewer/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,18 @@ function serve() {
export default {
input: 'src/main.ts',
output: {
sourcemap: true,
sourcemap: !production,
format: 'iife',
name: 'app',
file: 'public/build/bundle.js'
},
plugins: [
replace({
__buildVersion__: process.env.CF_PAGES_COMMIT_SHA || 'unknown',
__buildBranch__: process.env.CF_PAGES_BRANCH || 'main',
values: {
__buildVersion__: process.env.CF_PAGES_COMMIT_SHA || 'unknown',
__buildBranch__: process.env.CF_PAGES_BRANCH || 'main',
},
preventAssignment: true,
}),
css({ output: 'vendor.css' }),
copy({
Expand All @@ -63,11 +66,11 @@ export default {
compilerOptions: {
// enable run-time checks when not in production
dev: !production,
// we'll extract any component CSS out into
// a separate file - better for performance
css: css => {
css.write('bundle.css');
},
// // we'll extract any component CSS out into-]
// // a separate file - better for performance-]
// css: css => {
// css.write('bundle.css');
// },
}
}),
json(),
Expand Down
2 changes: 1 addition & 1 deletion packages/viewer/src/components/App.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import 'katex/dist/katex.min.css'
// import 'katex/dist/katex.min.css'
import 'bootstrap/dist/css/bootstrap.min.css'
import { Router } from 'svelte-routing'
Expand Down
28 changes: 14 additions & 14 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8e83e46

Please sign in to comment.