Files
memory-manager-concurrent/games/3dcity/utils/Main_rollup.config.js
Cola-Echo 6b80f1b755 feat: 支持 Lore-char 命名的总结世界书识别
- isSummaryBook 函数新增对 Lore-char/lore-char 的检测
- 修复启用记忆搜索助手时进度条重复显示总结世界书任务的问题
- 更新错误提示信息,说明支持的命名规则

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-17 00:49:28 +08:00

119 lines
1.4 KiB
JavaScript

import babel from '@rollup/plugin-babel';
import { terser } from 'rollup-plugin-terser';
/*export default [
{
input: 'src/Uil.js',
plugins: [
buble( {
transforms: {
arrow: false,
classes: true
}
} )
],
output: [
{
format: 'umd',
name: 'UIL',
file: 'build/uil.js',
indent: '\t'
}
]
},
{
input: 'src/Uil.js',
plugins: [
],
output: [
{
format: 'esm',
file: 'build/uil.module.js',
indent: '\t'
}
]
}
];*/
function babelCleanup() {
const doubleSpaces = / {2}/g;
return {
transform( code ) {
code = code.replace( doubleSpaces, '\t' );
return {
code: code,
map: null
};
}
};
}
function header() {
return {
renderChunk( code ) {
return `/**
* @license
* Copyright 2010-2022 3d.City.js Authors
* SPDX-License-Identifier: MIT
*/
${ code }`;
}
};
}
const babelrc = {
presets: [
[
'@babel/preset-env',
{
modules: false,
// the supported browsers of the three.js browser bundle
// https://browsersl.ist/?q=%3E0.3%25%2C+not+dead
targets: '>1%',
loose: true,
bugfixes: true,
}
]
],
plugins: [
[
"@babel/plugin-proposal-class-properties",
{
"loose": true
}
]
]
};
export default [
{
input: 'src/Main.js',
plugins: [
header()
],
output: [
{
format: 'esm',
file: 'build/MainGame.module.js'
}
]
}
];