-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2106 from nellh/2105-xml2js-fix
fix: Use @libs/xml over xml2js for tiff parsing
- Loading branch information
Showing
5 changed files
with
35 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,7 @@ | |
"@hed/validator": "npm:[email protected]", | ||
"@ignore": "npm:[email protected]", | ||
"@mango/nifti": "npm:[email protected]", | ||
"@xml2js": "npm:[email protected]" | ||
"@libs/xml": "jsr:@libs/[email protected]" | ||
}, | ||
"tasks": { | ||
"test": "deno test -A src/tests/" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,10 +6,27 @@ import { nodePolyfills } from "npm:[email protected]" | |
import "npm:react@^18.2.0" | ||
import "npm:react-dom@^18.2.0" | ||
|
||
/** | ||
* Vite plugin to hack a bug injected by the default assetImportMetaUrlPlugin | ||
*/ | ||
function workaroundAssetImportMetaUrlPluginBug() { | ||
return { | ||
name: "vite-workaround-import-glob", | ||
transform(src, id) { | ||
if (id.includes('validator/main.js')) { | ||
return src.replace(", import.meta.url", "") | ||
} else { | ||
return null | ||
} | ||
} | ||
} | ||
} | ||
|
||
// https://vitejs.dev/config/ | ||
export default defineConfig({ | ||
base: '', | ||
plugins: [ | ||
workaroundAssetImportMetaUrlPluginBug(), | ||
httpsImports.default(), | ||
react(), | ||
nodePolyfills({ | ||
|