@@ -5,8 +5,6 @@ import { fileURLToPath, URL } from 'url';
55import { defineConfig } from 'vite' ;
66import react from '@vitejs/plugin-react' ;
77import { VitePWA } from 'vite-plugin-pwa' ;
8- import { createRequire } from 'node:module' ;
9- const require = createRequire ( import . meta. url ) ; // Needed since the config file is also an ES module
108
119// https://vitejs.dev/config/
1210export default defineConfig ( {
@@ -19,11 +17,7 @@ export default defineConfig({
1917 emptyOutDir : true
2018 } ,
2119 resolve : {
22- alias : [
23- { find : '@' , replacement : fileURLToPath ( new URL ( './src' , import . meta. url ) ) } ,
24- // https://jira.mongodb.org/browse/NODE-5773
25- { find : 'bson' , replacement : require . resolve ( 'bson' ) }
26- ]
20+ alias : [ { find : '@' , replacement : fileURLToPath ( new URL ( './src' , import . meta. url ) ) } ]
2721 } ,
2822 publicDir : '../public' ,
2923 envDir : '..' , // Use this dir for env vars, not 'src'.
@@ -36,7 +30,6 @@ export default defineConfig({
3630 '@powersync/web > js-logger' ,
3731 '@powersync/web > lodash/throttle' ,
3832 '@powersync/web > can-ndjson-stream' ,
39- '@powersync/web > bson' ,
4033 '@powersync/web > buffer' ,
4134 '@powersync/web > rsocket-core' ,
4235 '@powersync/web > rsocket-websocket-client' ,
0 commit comments