Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Commit

Permalink
fix: remove many entrypoints and build based on index
Browse files Browse the repository at this point in the history
  • Loading branch information
carlossantos74 committed Jun 26, 2024
1 parent fac1ccb commit ba408d2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .esbuild/config.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
require('dotenv').config();
const { style } = require('./plugins/style-loader');
const glob = require('glob');

const entries = Object.entries(process.env).filter((key) => key[0].startsWith('SDK_'));
const env = Object.fromEntries(entries);
const entryPoints = glob
.sync('./src/**/*.ts')
.filter((file) => !file.endsWith('.d.ts') && !file.endsWith('.test.ts'));

const config = {
entryPoints,
entryPoints: ['./src/index.ts'],
loader: {
'.png': 'file',
'.svg': 'file',
Expand Down

0 comments on commit ba408d2

Please sign in to comment.