animate/webGl/my-threejs-test/node_modules/@parcel/packager-js/lib/GlobalOutputFormat.js

19 lines
477 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.GlobalOutputFormat = void 0;
class GlobalOutputFormat {
constructor(packager) {
this.packager = packager;
}
buildBundlePrelude() {
let prelude = this.packager.bundle.env.supports('arrow-functions', true) ? '(() => {\n' : '(function () {\n';
return [prelude, 1];
}
buildBundlePostlude() {
return ['})();', 0];
}
}
exports.GlobalOutputFormat = GlobalOutputFormat;