From a781b52ed447a3bf28303b6cfa649717ce51a0bc Mon Sep 17 00:00:00 2001 From: Dimasik Kolezhniuk Date: Fri, 22 Mar 2024 18:21:59 +0100 Subject: [PATCH] Use native Worker for ES module browser build --- build/browser.esm.js | 26 +------------------------- rollup.browser.esm.config.js | 1 + 2 files changed, 2 insertions(+), 25 deletions(-) diff --git a/build/browser.esm.js b/build/browser.esm.js index 439dcfd..fb9caae 100644 --- a/build/browser.esm.js +++ b/build/browser.esm.js @@ -2757,10 +2757,6 @@ class EC { } -function getDefaultExportFromCjs (x) { - return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x; -} - var utils$6 = {}; /* @@ -15646,26 +15642,6 @@ function thread(self) { return runTask; } -/** - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -var browser = Worker; - -var Worker$1 = /*@__PURE__*/getDefaultExportFromCjs(browser); - /* Copyright 2019 0KIMS association. @@ -15772,7 +15748,7 @@ async function buildThreadManager(wasm, singleThread) { for (let i = 0; i