sangwaritaxi_website/node_modules/@jsr/supabase__supabase-js/webpack.config.js

31 lines
575 B
JavaScript

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: [],
})