Update memory-manager-concurrent

This commit is contained in:
Cola-Echo
2026-01-21 18:11:33 +08:00
commit f51c4ef6dc
418 changed files with 400794 additions and 0 deletions

View File

@@ -0,0 +1,119 @@
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'
}
]
}
];