31 lines
575 B
JavaScript
Executable File
31 lines
575 B
JavaScript
Executable File
const webpack = require('npm:webpack@^5.69.1')
|
|
const path = require('node:path')
|
|
|
|
module.exports = (env) => ({
|
|
mode: env?.mode || 'production',
|
|
entry: './src/index.ts',
|
|
output: {
|
|
path: path.resolve(__dirname, 'dist/umd'),
|
|
filename: 'supabase.js',
|
|
library: {
|
|
type: 'umd',
|
|
name: 'supabase',
|
|
},
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.ts$/,
|
|
loader: 'ts-loader',
|
|
options: {
|
|
transpileOnly: true,
|
|
},
|
|
},
|
|
],
|
|
},
|
|
resolve: {
|
|
extensions: ['.ts', '.js', '.json'],
|
|
},
|
|
plugins: [],
|
|
})
|