mirror of
https://github.com/selfxyz/self.git
synced 2026-04-27 03:01:15 -04:00
delete bundle configs file in sdk
This commit is contained in:
@@ -1,30 +0,0 @@
|
||||
const path = require('path');
|
||||
|
||||
module.exports = {
|
||||
mode: 'production',
|
||||
entry: './src/index.node.ts',
|
||||
output: {
|
||||
filename: 'bundle.node.js',
|
||||
path: path.resolve(__dirname, 'dist'),
|
||||
libraryTarget: 'umd',
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.tsx?$/,
|
||||
use: 'ts-loader',
|
||||
exclude: /node_modules/,
|
||||
},
|
||||
],
|
||||
},
|
||||
resolve: {
|
||||
extensions: ['.tsx', '.ts', '.js'],
|
||||
fallback: {
|
||||
bufferutil: false,
|
||||
'utf-8-validate': false,
|
||||
debug: require.resolve('debug'),
|
||||
},
|
||||
},
|
||||
|
||||
target: 'node',
|
||||
};
|
||||
@@ -1,35 +0,0 @@
|
||||
const path = require('path');
|
||||
|
||||
module.exports = {
|
||||
mode: 'production',
|
||||
entry: './src/index.web.ts', // Updated entry point
|
||||
output: {
|
||||
filename: 'bundle.web.js',
|
||||
path: path.resolve(__dirname, 'dist'),
|
||||
libraryTarget: 'umd',
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.(ts|tsx)$/,
|
||||
use: 'ts-loader',
|
||||
exclude: /node_modules/,
|
||||
},
|
||||
],
|
||||
},
|
||||
resolve: {
|
||||
mainFields: ['browser', 'module', 'main'],
|
||||
extensions: ['.tsx', '.ts', '.js', '.jsx'],
|
||||
fallback: {
|
||||
bufferutil: false,
|
||||
'utf-8-validate': false,
|
||||
debug: require.resolve('debug'),
|
||||
},
|
||||
},
|
||||
target: 'web',
|
||||
externals: {
|
||||
react: 'react',
|
||||
'react-dom': 'react-dom',
|
||||
'lottie-react': 'lottie-react',
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user