Skip to content

Commit

Permalink
fix(app): Run vite import glob workaround only on dev server
Browse files Browse the repository at this point in the history
  • Loading branch information
nellh committed Nov 12, 2024
1 parent 258a56c commit 72def98
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/openneuro-app/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import nodePolyfills from "rollup-plugin-polyfill-node"
function workaroundAssetImportMetaUrlPluginBug() {
return {
name: "vite-workaround-import-glob",
apply: "serve",
transform(src, id) {
if (id.includes("@bids_validator_main.js")) {
return src.replace(", import.meta.url", "")
Expand Down

0 comments on commit 72def98

Please sign in to comment.