Skip to content

Commit

Permalink
fixed bug thanks to @bluesign
Browse files Browse the repository at this point in the history
  • Loading branch information
muttoni committed Jan 16, 2023
1 parent 6082051 commit c09a344
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,25 @@ import inject from '@rollup/plugin-inject'

/** @type {import('vite').UserConfig} */
const config = {
define: {
global: 'globalThis'
},
plugins: [
nodePolyfills({
define: {
global: 'globalThis'
},
plugins: [
nodePolyfills({
// Whether to polyfill `node:` protocol imports.
protocolImports: true,
}),
sveltekit()
],
build: {
rollupOptions: {
plugins: [inject({ Buffer: ['buffer', 'Buffer'] })]
},
},
sveltekit()
],
resolve:{
alias:{
"node-fetch": "./node_modules/node-fetch/browser.js"
}
},
build: {
rollupOptions: {
plugins: [inject({ Buffer: ['buffer', 'Buffer'] })]
},
},
};
export default config;

1 comment on commit c09a344

@vercel
Copy link

@vercel vercel bot commented on c09a344 Jan 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

fcl-sveltekit – ./

fcl-sveltekit-muttoni.vercel.app
fcl-sveltekit-git-main-muttoni.vercel.app
fcl-sveltekit.vercel.app

Please sign in to comment.