File tree Expand file tree Collapse file tree 2 files changed +4
-23
lines changed
Expand file tree Collapse file tree 2 files changed +4
-23
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ export default defineConfig({
1313 ...(
1414 process . env . NETLIFY ? {
1515 build : {
16- rollupOptions : {
16+ rolldownOptions : {
1717 external : [ '__tests__/*' , '__mocks__/*' ] ,
1818 input : Object . fromEntries (
1919 globSync ( './demo/*.html' ) . map ( ( file ) => [
@@ -39,7 +39,7 @@ export default defineConfig({
3939 formats : [ 'es' ] ,
4040 name : 'Mirador' ,
4141 } ,
42- rollupOptions : {
42+ rolldownOptions : {
4343 external : ( id , parentId ) => {
4444 const peers = Object . keys ( packageJson . peerDependencies ) ;
4545 return peers . indexOf ( id ) > - 1
Original file line number Diff line number Diff line change 11/// <reference types="vitest" />
2- import { defineConfig } from 'vite ' ;
2+ import { defineConfig } from 'vitest/config ' ;
33import react from '@vitejs/plugin-react' ;
44import { fileURLToPath } from 'url' ;
5- import fs from 'fs/promises' ;
6-
75export default defineConfig ( {
8- esbuild : {
6+ oxc : {
97 exclude : [ ] ,
108 include : / ( s r c | _ _ t e s t s _ _ ) \/ .* \. j s x ? $ / ,
11- loader : 'jsx' ,
12- } ,
13- optimizeDeps : {
14- esbuildOptions : {
15- plugins : [
16- {
17- name : 'load-js-files-as-jsx' ,
18- /** */
19- setup ( build ) {
20- build . onLoad ( { filter : / ( s r c | _ _ t e s t s _ _ ) \/ .* \. j s $ / } , async ( args ) => ( {
21- contents : await fs . readFile ( args . path , 'utf8' ) ,
22- loader : 'jsx' ,
23- } ) ) ;
24- } ,
25- } ,
26- ] ,
27- } ,
289 } ,
2910 plugins : [ react ( ) ] ,
3011 resolve : {
You can’t perform that action at this time.
0 commit comments