Skip to content

Commit

Permalink
Merge pull request #2787 from evidence-dev/fix/reexport-injectedEvide…
Browse files Browse the repository at this point in the history
…nceImports-from-evidence

fix: reexport injectedEvidenceImports from evidence package
  • Loading branch information
zachstence authored Nov 14, 2024
2 parents da1d149 + 2c5fda5 commit c02261a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/odd-bulldogs-watch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@evidence-dev/evidence': patch
---

Export injectedEvidenceImports from preprocess
2 changes: 2 additions & 0 deletions packages/evidence/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import preprocess from '@evidence-dev/preprocess';
export const injectedEvidenceImports = preprocess.injectedEvidenceImports;
4 changes: 2 additions & 2 deletions packages/evidence/scripts/build-template.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ fsExtra.outputFileSync(
import { createLogger } from 'vite';
import { sourceQueryHmr, configVirtual } from '@evidence-dev/sdk/build/vite';
import { isDebug } from '@evidence-dev/sdk/utils';
import preprocess from '@evidence-dev/preprocess';
import { injectedEvidenceImports } from '@evidence-dev/evidence';
const logger = createLogger();
const loggerWarn = logger.warn;
Expand Down Expand Up @@ -84,7 +84,7 @@ fsExtra.outputFileSync(
// We need these to prevent HMR from doing a full page reload
...(process.env.EVIDENCE_DISABLE_INCLUDE ? [] : [
'@evidence-dev/core-components',
...preprocess.injectedEvidenceImports.map(i => i.from),
...injectedEvidenceImports.map(i => i.from),
'debounce',
'@duckdb/duckdb-wasm',
'apache-arrow'
Expand Down

0 comments on commit c02261a

Please sign in to comment.