|
|
@@ -1,4 +1,3 @@
|
|
|
-import terser from '@rollup/plugin-terser';
|
|
|
import MagicString from 'magic-string';
|
|
|
|
|
|
function glsl() {
|
|
|
@@ -120,67 +119,7 @@ const builds = [
|
|
|
}
|
|
|
],
|
|
|
external: [ 'three/webgpu' ]
|
|
|
- },
|
|
|
- {
|
|
|
- input: {
|
|
|
- 'three.core.min.js': 'src/Three.Core.js',
|
|
|
- 'three.webgpu.nodes.min.js': 'src/Three.WebGPU.Nodes.js',
|
|
|
- },
|
|
|
- plugins: [
|
|
|
- glsl(),
|
|
|
- header(),
|
|
|
- terser()
|
|
|
- ],
|
|
|
- preserveEntrySignatures: 'allow-extension',
|
|
|
- output: [
|
|
|
- {
|
|
|
- format: 'esm',
|
|
|
- dir: 'build',
|
|
|
- minifyInternalExports: false,
|
|
|
- entryFileNames: '[name]',
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- {
|
|
|
- input: {
|
|
|
- 'three.core.min.js': 'src/Three.Core.js',
|
|
|
- 'three.module.min.js': 'src/Three.js',
|
|
|
- 'three.webgpu.min.js': 'src/Three.WebGPU.js',
|
|
|
- },
|
|
|
- plugins: [
|
|
|
- glsl(),
|
|
|
- header(),
|
|
|
- terser()
|
|
|
- ],
|
|
|
- preserveEntrySignatures: 'allow-extension',
|
|
|
- output: [
|
|
|
- {
|
|
|
- format: 'esm',
|
|
|
- dir: 'build',
|
|
|
- minifyInternalExports: false,
|
|
|
- entryFileNames: '[name]',
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- {
|
|
|
- input: {
|
|
|
- 'three.tsl.min.js': 'src/Three.TSL.js'
|
|
|
- },
|
|
|
- plugins: [
|
|
|
- header(),
|
|
|
- terser()
|
|
|
- ],
|
|
|
- preserveEntrySignatures: 'allow-extension',
|
|
|
- output: [
|
|
|
- {
|
|
|
- format: 'esm',
|
|
|
- dir: 'build',
|
|
|
- minifyInternalExports: false,
|
|
|
- entryFileNames: '[name]',
|
|
|
- }
|
|
|
- ],
|
|
|
- external: [ 'three/webgpu' ]
|
|
|
}
|
|
|
];
|
|
|
|
|
|
-export default ( args ) => args.configOnlyModule ? builds.slice( 0, 3 ) : builds;
|
|
|
+export default builds;
|