|
@@ -1,6 +1,4 @@
|
|
|
-import babel from '@rollup/plugin-babel';
|
|
|
import { terser } from 'rollup-plugin-terser';
|
|
|
-import babelrc from './.babelrc.json';
|
|
|
|
|
|
export function glconstants() {
|
|
|
|
|
@@ -246,27 +244,6 @@ export function glsl() {
|
|
|
|
|
|
}
|
|
|
|
|
|
-function babelCleanup() {
|
|
|
-
|
|
|
- const doubleSpaces = / {2}/g;
|
|
|
-
|
|
|
- return {
|
|
|
-
|
|
|
- transform( code ) {
|
|
|
-
|
|
|
- code = code.replace( doubleSpaces, '\t' );
|
|
|
-
|
|
|
- return {
|
|
|
- code: code,
|
|
|
- map: null
|
|
|
- };
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- };
|
|
|
-
|
|
|
-}
|
|
|
-
|
|
|
function header() {
|
|
|
|
|
|
return {
|
|
@@ -307,13 +284,6 @@ const builds = [
|
|
|
plugins: [
|
|
|
addons(),
|
|
|
glsl(),
|
|
|
- babel( {
|
|
|
- babelHelpers: 'bundled',
|
|
|
- compact: false,
|
|
|
- babelrc: false,
|
|
|
- ...babelrc
|
|
|
- } ),
|
|
|
- babelCleanup(),
|
|
|
header()
|
|
|
],
|
|
|
output: [
|
|
@@ -337,12 +307,6 @@ const builds = [
|
|
|
addons(),
|
|
|
glconstants(),
|
|
|
glsl(),
|
|
|
- babel( {
|
|
|
- babelHelpers: 'bundled',
|
|
|
- babelrc: false,
|
|
|
- ...babelrc
|
|
|
- } ),
|
|
|
- babelCleanup(),
|
|
|
terser(),
|
|
|
header()
|
|
|
],
|
|
@@ -356,4 +320,4 @@ const builds = [
|
|
|
}
|
|
|
];
|
|
|
|
|
|
-export default ( args ) => args.configOnlyModule ? builds[ 0 ] : builds;
|
|
|
+export default ( args ) => args.configOnlyModule ? builds[ 0 ] : builds;
|