Skip to content

Commit 7c0c8b5

Browse files
committed
tell vite to replace process.env because some genius dependency seems to be trying to use them in there code, and it breaks deployment on some bad CDN
1 parent 2725952 commit 7c0c8b5

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,14 @@ All notable changes to this project will be documented in this file. Dates are d
44

55
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
66

7+
#### [v0.2.6](https://github.com/sib-swiss/sparql-editor/compare/v0.2.5...v0.2.6)
8+
9+
- try to fix the sudden new bug that makes CDN import fail [`2725952`](https://github.com/sib-swiss/sparql-editor/commit/27259520e8a97ba60bdcedd85011f7d45adcc321)
10+
711
#### [v0.2.5](https://github.com/sib-swiss/sparql-editor/compare/v0.2.4...v0.2.5)
812

13+
> 27 March 2025
14+
915
- improve tests, add @comunica/query-sparql to be able to retrieve VoID description directly from the SPARQL Service Description [`d1ede11`](https://github.com/sib-swiss/sparql-editor/commit/d1ede119b946e5b4b63cda4f62ec16e2eb673128)
1016
- add metamap to packages [`90912bc`](https://github.com/sib-swiss/sparql-editor/commit/90912bcdfe9f88d837c0be01be7139a79e2fec69)
1117
- update deps [`e65f9b6`](https://github.com/sib-swiss/sparql-editor/commit/e65f9b644d3438abfd47932e22687d9ab122be81)

packages/sparql-editor/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sib-swiss/sparql-editor",
3-
"version": "0.2.5",
3+
"version": "0.2.6",
44
"description": "A standard web component to easily deploy a user-friendly SPARQL query editor for one or more endpoints. Built on the popular YASGUI editor, it provides context-aware autocomplete for classes and predicates based on the content of the endpoints.",
55
"license": "MIT",
66
"author": {
@@ -17,8 +17,7 @@
1717
"exports": {
1818
".": {
1919
"import": "./dist/sparql-editor.js",
20-
"require": "./dist/sparql-editor.umd.cjs",
21-
"types": "./dist/src/sparql-editor.d.ts"
20+
"require": "./dist/sparql-editor.umd.cjs"
2221
}
2322
},
2423
"homepage": "https://sib-swiss.github.io/sparql-editor",

packages/sparql-editor/vite.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ export default defineConfig({
2222
plugins: [typescript()],
2323
},
2424
},
25+
// Make sure to set the environment variable to an empty object, because some stupid dependencies are using process.env.NODE_ENV
26+
define: {
27+
"process.env": JSON.stringify({}),
28+
},
2529
// resolve: {
2630
// alias: {
2731
// '@sib-swiss/sparql-overview': resolve(__dirname, '../sparql-overview/src/sparql-overview.ts')

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"compilerOptions": {
33
"target": "ES2020",
4-
"module": "ESNext",
4+
"module": "ES2020",
55
"moduleResolution": "bundler",
66
"esModuleInterop": true,
77
"strict": true,

0 commit comments

Comments
 (0)