fix bundle config
This commit is contained in:
@@ -4,7 +4,6 @@ import { terser } from 'rollup-plugin-terser';
|
|||||||
import postcss from 'rollup-plugin-postcss';
|
import postcss from 'rollup-plugin-postcss';
|
||||||
import renameNodeModules from 'rollup-plugin-rename-node-modules';
|
import renameNodeModules from 'rollup-plugin-rename-node-modules';
|
||||||
import pkg from './package.json';
|
import pkg from './package.json';
|
||||||
const tsConfig = require('./tsconfig.json');
|
|
||||||
|
|
||||||
function toRecordPath(path) {
|
function toRecordPath(path) {
|
||||||
return path
|
return path
|
||||||
@@ -47,35 +46,35 @@ function toMinPath(path) {
|
|||||||
|
|
||||||
const baseConfigs = [
|
const baseConfigs = [
|
||||||
// record only
|
// record only
|
||||||
// {
|
{
|
||||||
// input: './src/record/index.ts',
|
input: './src/record/index.ts',
|
||||||
// name: 'rrwebRecord',
|
name: 'rrwebRecord',
|
||||||
// pathFn: toRecordPath,
|
pathFn: toRecordPath,
|
||||||
// },
|
},
|
||||||
// // record and pack
|
// record and pack
|
||||||
// {
|
{
|
||||||
// input: './src/entries/record-pack.ts',
|
input: './src/entries/record-pack.ts',
|
||||||
// name: 'rrwebRecord',
|
name: 'rrwebRecord',
|
||||||
// pathFn: toRecordPackPath,
|
pathFn: toRecordPackPath,
|
||||||
// },
|
},
|
||||||
// // replay only
|
// replay only
|
||||||
// {
|
{
|
||||||
// input: './src/replay/index.ts',
|
input: './src/replay/index.ts',
|
||||||
// name: 'rrwebReplay',
|
name: 'rrwebReplay',
|
||||||
// pathFn: toReplayPath,
|
pathFn: toReplayPath,
|
||||||
// },
|
},
|
||||||
// // replay and unpack
|
// replay and unpack
|
||||||
// {
|
{
|
||||||
// input: './src/entries/replay-unpack.ts',
|
input: './src/entries/replay-unpack.ts',
|
||||||
// name: 'rrwebReplay',
|
name: 'rrwebReplay',
|
||||||
// pathFn: toReplayUnpackPath,
|
pathFn: toReplayUnpackPath,
|
||||||
// },
|
},
|
||||||
// // record and replay
|
// record and replay
|
||||||
// {
|
{
|
||||||
// input: './src/index.ts',
|
input: './src/index.ts',
|
||||||
// name: 'rrweb',
|
name: 'rrweb',
|
||||||
// pathFn: (p) => p,
|
pathFn: (p) => p,
|
||||||
// },
|
},
|
||||||
// all in one
|
// all in one
|
||||||
{
|
{
|
||||||
input: './src/entries/all.ts',
|
input: './src/entries/all.ts',
|
||||||
@@ -84,16 +83,16 @@ const baseConfigs = [
|
|||||||
esm: true,
|
esm: true,
|
||||||
},
|
},
|
||||||
// plugins
|
// plugins
|
||||||
// {
|
{
|
||||||
// input: './src/plugins/console/record/index.ts',
|
input: './src/plugins/console/record/index.ts',
|
||||||
// name: 'rrwebConsoleRecord',
|
name: 'rrwebConsoleRecord',
|
||||||
// pathFn: toPluginPath('console', 'record'),
|
pathFn: toPluginPath('console', 'record'),
|
||||||
// },
|
},
|
||||||
// {
|
{
|
||||||
// input: './src/plugins/console/replay/index.ts',
|
input: './src/plugins/console/replay/index.ts',
|
||||||
// name: 'rrwebConsoleReplay',
|
name: 'rrwebConsoleReplay',
|
||||||
// pathFn: toPluginPath('console', 'replay'),
|
pathFn: toPluginPath('console', 'replay'),
|
||||||
// },
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
let configs = [];
|
let configs = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user