Skip to content

Commit

Permalink
transpile supabase packages
Browse files Browse the repository at this point in the history
  • Loading branch information
imlautaro committed Oct 15, 2021
1 parent 48f8031 commit d2c6561
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions lib/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ import path from 'path'
export default function (moduleOptions) {
const options = Object.assign({}, this.options.supabase, moduleOptions)

this.nuxt.options.build.transpile.push(
'@supabase/supabase-js',
'@supabase/gotrue-js',
'@supabase/postgrest-js',
'@supabase/realtime-js',
'@supabase/storage-js'
)

this.addPlugin({
src: path.resolve(__dirname, 'plugin.js'),
options: {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"author": "Lautaro Pereyra <[email protected]>",
"license": "MIT",
"description": "An easy way to integrate Supabase with NuxtJS",
"version": "1.2.0",
"version": "1.2.1",
"keywords": [
"nuxt",
"supabase",
Expand Down

0 comments on commit d2c6561

Please sign in to comment.