Skip to content

Commit

Permalink
refactor(es/helpers): Remove unnecessary exports (#9225)
Browse files Browse the repository at this point in the history
**Description:**

Helper methods were exporting twice, `_` and it's own function name.
We can map the build script to export `_` as it's own name (filename).
Therefore we export only once as `_`, and map the name on the build
script.

```js
// helpers/_foo.js

function _foo() {
  // ...
}

export { _foo as _ }
```
```js
// index.js

// We know the func name will be `_foo` based on the filename.
export { _ as _foo } from '_foo.js'
```

Closes #9203

---------

Co-authored-by: magic-akari <[email protected]>
  • Loading branch information
devjiwonchoi and magic-akari authored Jul 13, 2024
1 parent e22f3ba commit 69719c2
Show file tree
Hide file tree
Showing 103 changed files with 285 additions and 335 deletions.
2 changes: 1 addition & 1 deletion packages/helpers/esm/_apply_decorated_descriptor.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export function _apply_decorated_descriptor(target, property, decorators, descriptor, context) {
function _apply_decorated_descriptor(target, property, decorators, descriptor, context) {
var desc = {};

Object["ke" + "ys"](descriptor).forEach(function(key) {
Expand Down
2 changes: 1 addition & 1 deletion packages/helpers/esm/_apply_decs_2203_r.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
CLASS = 10; // only used in assertValidReturnValue
*/

export function _apply_decs_2203_r(targetClass, memberDecs, classDecs, parentClass) {
function _apply_decs_2203_r(targetClass, memberDecs, classDecs, parentClass) {
function createAddInitializerMethod(initializers, decoratorFinishedRef) {
return function addInitializer(initializer) {
assertNotFinished(decoratorFinishedRef, "addInitializer");
Expand Down
2 changes: 1 addition & 1 deletion packages/helpers/esm/_array_like_to_array.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export function _array_like_to_array(arr, len) {
function _array_like_to_array(arr, len) {
if (len == null || len > arr.length) len = arr.length;

for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
Expand Down
2 changes: 1 addition & 1 deletion packages/helpers/esm/_array_with_holes.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export function _array_with_holes(arr) {
function _array_with_holes(arr) {
if (Array.isArray(arr)) return arr;
}
export { _array_with_holes as _ };
4 changes: 2 additions & 2 deletions packages/helpers/esm/_array_without_holes.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { _array_like_to_array } from "./_array_like_to_array.js";
import { _ as _array_like_to_array } from "./_array_like_to_array.js";

export function _array_without_holes(arr) {
function _array_without_holes(arr) {
if (Array.isArray(arr)) return _array_like_to_array(arr);
}
export { _array_without_holes as _ };
2 changes: 1 addition & 1 deletion packages/helpers/esm/_assert_this_initialized.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export function _assert_this_initialized(self) {
function _assert_this_initialized(self) {
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");

return self;
Expand Down
4 changes: 2 additions & 2 deletions packages/helpers/esm/_async_generator.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { _await_value } from "./_await_value.js";
import { _ as _await_value } from "./_await_value.js";

export function _async_generator(gen) {
function _async_generator(gen) {
var front, back;

function send(key, arg) {
Expand Down
2 changes: 1 addition & 1 deletion packages/helpers/esm/_async_generator_delegate.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export function _async_generator_delegate(inner, awaitWrap) {
function _async_generator_delegate(inner, awaitWrap) {
var iter = {}, waiting = false;

function pump(key, value) {
Expand Down
2 changes: 1 addition & 1 deletion packages/helpers/esm/_async_iterator.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export function _async_iterator(iterable) {
function _async_iterator(iterable) {
var method, async, sync, retry = 2;
for ("undefined" != typeof Symbol && (async = Symbol.asyncIterator, sync = Symbol.iterator); retry--;) {
if (async && null != (method = iterable[async])) return method.call(iterable);
Expand Down
2 changes: 1 addition & 1 deletion packages/helpers/esm/_async_to_generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
if (info.done) resolve(value);
else Promise.resolve(value).then(_next, _throw);
}
export function _async_to_generator(fn) {
function _async_to_generator(fn) {
return function() {
var self = this, args = arguments;

Expand Down
4 changes: 2 additions & 2 deletions packages/helpers/esm/_await_async_generator.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { _await_value } from "./_await_value.js";
import { _ as _await_value } from "./_await_value.js";

export function _await_async_generator(value) {
function _await_async_generator(value) {
return new _await_value(value);
}
export { _await_async_generator as _ };
2 changes: 1 addition & 1 deletion packages/helpers/esm/_await_value.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export function _await_value(value) {
function _await_value(value) {
this.wrapped = value;
}
export { _await_value as _ };
2 changes: 1 addition & 1 deletion packages/helpers/esm/_check_private_redeclaration.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export function _check_private_redeclaration(obj, privateCollection) {
function _check_private_redeclaration(obj, privateCollection) {
if (privateCollection.has(obj)) {
throw new TypeError("Cannot initialize the same private elements twice on an object");
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export function _class_apply_descriptor_destructure(receiver, descriptor) {
function _class_apply_descriptor_destructure(receiver, descriptor) {
if (descriptor.set) {
if (!("__destrObj" in descriptor)) {
descriptor.__destrObj = {
Expand Down
2 changes: 1 addition & 1 deletion packages/helpers/esm/_class_apply_descriptor_get.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export function _class_apply_descriptor_get(receiver, descriptor) {
function _class_apply_descriptor_get(receiver, descriptor) {
if (descriptor.get) return descriptor.get.call(receiver);

return descriptor.value;
Expand Down
2 changes: 1 addition & 1 deletion packages/helpers/esm/_class_apply_descriptor_set.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export function _class_apply_descriptor_set(receiver, descriptor, value) {
function _class_apply_descriptor_set(receiver, descriptor, value) {
if (descriptor.set) descriptor.set.call(receiver, value);
else {
if (!descriptor.writable) {
Expand Down
2 changes: 1 addition & 1 deletion packages/helpers/esm/_class_apply_descriptor_update.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export function _class_apply_descriptor_update(receiver, descriptor) {
function _class_apply_descriptor_update(receiver, descriptor) {
if (descriptor.set) {
if (!descriptor.get) throw new TypeError("attempted to read set only private field");

Expand Down
2 changes: 1 addition & 1 deletion packages/helpers/esm/_class_call_check.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export function _class_call_check(instance, Constructor) {
function _class_call_check(instance, Constructor) {
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
}
export { _class_call_check as _ };
2 changes: 1 addition & 1 deletion packages/helpers/esm/_class_check_private_static_access.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export function _class_check_private_static_access(receiver, classConstructor) {
function _class_check_private_static_access(receiver, classConstructor) {
if (receiver !== classConstructor) throw new TypeError("Private static access of wrong provenance");
}
export { _class_check_private_static_access as _ };
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export function _class_check_private_static_field_descriptor(descriptor, action) {
function _class_check_private_static_field_descriptor(descriptor, action) {
if (descriptor === undefined) {
throw new TypeError("attempted to " + action + " private static field before its declaration");
}
Expand Down
2 changes: 1 addition & 1 deletion packages/helpers/esm/_class_extract_field_descriptor.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export function _class_extract_field_descriptor(receiver, privateMap, action) {
function _class_extract_field_descriptor(receiver, privateMap, action) {
if (!privateMap.has(receiver)) throw new TypeError("attempted to " + action + " private field on non-instance");

return privateMap.get(receiver);
Expand Down
2 changes: 1 addition & 1 deletion packages/helpers/esm/_class_name_tdz_error.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export function _class_name_tdz_error(name) {
function _class_name_tdz_error(name) {
throw new Error("Class \"" + name + "\" cannot be referenced in computed property keys.");
}
export { _class_name_tdz_error as _ };
6 changes: 3 additions & 3 deletions packages/helpers/esm/_class_private_field_destructure.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { _class_apply_descriptor_destructure } from "./_class_apply_descriptor_destructure.js";
import { _class_extract_field_descriptor } from "./_class_extract_field_descriptor.js";
import { _ as _class_apply_descriptor_destructure } from "./_class_apply_descriptor_destructure.js";
import { _ as _class_extract_field_descriptor } from "./_class_extract_field_descriptor.js";

export function _class_private_field_destructure(receiver, privateMap) {
function _class_private_field_destructure(receiver, privateMap) {
var descriptor = _class_extract_field_descriptor(receiver, privateMap, "set");
return _class_apply_descriptor_destructure(receiver, descriptor);
}
Expand Down
6 changes: 3 additions & 3 deletions packages/helpers/esm/_class_private_field_get.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { _class_apply_descriptor_get } from "./_class_apply_descriptor_get.js";
import { _class_extract_field_descriptor } from "./_class_extract_field_descriptor.js";
import { _ as _class_apply_descriptor_get } from "./_class_apply_descriptor_get.js";
import { _ as _class_extract_field_descriptor } from "./_class_extract_field_descriptor.js";

export function _class_private_field_get(receiver, privateMap) {
function _class_private_field_get(receiver, privateMap) {
var descriptor = _class_extract_field_descriptor(receiver, privateMap, "get");
return _class_apply_descriptor_get(receiver, descriptor);
}
Expand Down
4 changes: 2 additions & 2 deletions packages/helpers/esm/_class_private_field_init.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { _check_private_redeclaration } from "./_check_private_redeclaration.js";
import { _ as _check_private_redeclaration } from "./_check_private_redeclaration.js";

export function _class_private_field_init(obj, privateMap, value) {
function _class_private_field_init(obj, privateMap, value) {
_check_private_redeclaration(obj, privateMap);
privateMap.set(obj, value);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/helpers/esm/_class_private_field_loose_base.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export function _class_private_field_loose_base(receiver, privateKey) {
function _class_private_field_loose_base(receiver, privateKey) {
if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) {
throw new TypeError("attempted to use private field on non-instance");
}
Expand Down
2 changes: 1 addition & 1 deletion packages/helpers/esm/_class_private_field_loose_key.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var id = 0;

export function _class_private_field_loose_key(name) {
function _class_private_field_loose_key(name) {
return "__private_" + id++ + "_" + name;
}
export { _class_private_field_loose_key as _ };
6 changes: 3 additions & 3 deletions packages/helpers/esm/_class_private_field_set.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { _class_apply_descriptor_set } from "./_class_apply_descriptor_set.js";
import { _class_extract_field_descriptor } from "./_class_extract_field_descriptor.js";
import { _ as _class_apply_descriptor_set } from "./_class_apply_descriptor_set.js";
import { _ as _class_extract_field_descriptor } from "./_class_extract_field_descriptor.js";

export function _class_private_field_set(receiver, privateMap, value) {
function _class_private_field_set(receiver, privateMap, value) {
var descriptor = _class_extract_field_descriptor(receiver, privateMap, "set");
_class_apply_descriptor_set(receiver, descriptor, value);
return value;
Expand Down
6 changes: 3 additions & 3 deletions packages/helpers/esm/_class_private_field_update.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { _class_apply_descriptor_update } from "./_class_apply_descriptor_update.js";
import { _class_extract_field_descriptor } from "./_class_extract_field_descriptor.js";
import { _ as _class_apply_descriptor_update } from "./_class_apply_descriptor_update.js";
import { _ as _class_extract_field_descriptor } from "./_class_extract_field_descriptor.js";

export function _class_private_field_update(receiver, privateMap) {
function _class_private_field_update(receiver, privateMap) {
var descriptor = _class_extract_field_descriptor(receiver, privateMap, "update");
return _class_apply_descriptor_update(receiver, descriptor);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/helpers/esm/_class_private_method_get.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export function _class_private_method_get(receiver, privateSet, fn) {
function _class_private_method_get(receiver, privateSet, fn) {
if (!privateSet.has(receiver)) throw new TypeError("attempted to get private field on non-instance");

return fn;
Expand Down
4 changes: 2 additions & 2 deletions packages/helpers/esm/_class_private_method_init.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { _check_private_redeclaration } from "./_check_private_redeclaration.js";
import { _ as _check_private_redeclaration } from "./_check_private_redeclaration.js";

export function _class_private_method_init(obj, privateSet) {
function _class_private_method_init(obj, privateSet) {
_check_private_redeclaration(obj, privateSet);
privateSet.add(obj);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/helpers/esm/_class_private_method_set.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export function _class_private_method_set() {
function _class_private_method_set() {
throw new TypeError("attempted to reassign private method");
}
export { _class_private_method_set as _ };
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { _class_apply_descriptor_destructure } from "./_class_apply_descriptor_destructure.js";
import { _class_check_private_static_access } from "./_class_check_private_static_access.js";
import { _class_check_private_static_field_descriptor } from "./_class_check_private_static_field_descriptor.js";
import { _ as _class_apply_descriptor_destructure } from "./_class_apply_descriptor_destructure.js";
import { _ as _class_check_private_static_access } from "./_class_check_private_static_access.js";
import { _ as _class_check_private_static_field_descriptor } from "./_class_check_private_static_field_descriptor.js";

export function _class_static_private_field_destructure(receiver, classConstructor, descriptor) {
function _class_static_private_field_destructure(receiver, classConstructor, descriptor) {
_class_check_private_static_access(receiver, classConstructor);
_class_check_private_static_field_descriptor(descriptor, "set");

Expand Down
8 changes: 4 additions & 4 deletions packages/helpers/esm/_class_static_private_field_spec_get.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { _class_apply_descriptor_get } from "./_class_apply_descriptor_get.js";
import { _class_check_private_static_access } from "./_class_check_private_static_access.js";
import { _class_check_private_static_field_descriptor } from "./_class_check_private_static_field_descriptor.js";
import { _ as _class_apply_descriptor_get } from "./_class_apply_descriptor_get.js";
import { _ as _class_check_private_static_access } from "./_class_check_private_static_access.js";
import { _ as _class_check_private_static_field_descriptor } from "./_class_check_private_static_field_descriptor.js";

export function _class_static_private_field_spec_get(receiver, classConstructor, descriptor) {
function _class_static_private_field_spec_get(receiver, classConstructor, descriptor) {
_class_check_private_static_access(receiver, classConstructor);
_class_check_private_static_field_descriptor(descriptor, "get");

Expand Down
8 changes: 4 additions & 4 deletions packages/helpers/esm/_class_static_private_field_spec_set.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { _class_apply_descriptor_set } from "./_class_apply_descriptor_set.js";
import { _class_check_private_static_access } from "./_class_check_private_static_access.js";
import { _class_check_private_static_field_descriptor } from "./_class_check_private_static_field_descriptor.js";
import { _ as _class_apply_descriptor_set } from "./_class_apply_descriptor_set.js";
import { _ as _class_check_private_static_access } from "./_class_check_private_static_access.js";
import { _ as _class_check_private_static_field_descriptor } from "./_class_check_private_static_field_descriptor.js";

export function _class_static_private_field_spec_set(receiver, classConstructor, descriptor, value) {
function _class_static_private_field_spec_set(receiver, classConstructor, descriptor, value) {
_class_check_private_static_access(receiver, classConstructor);
_class_check_private_static_field_descriptor(descriptor, "set");
_class_apply_descriptor_set(receiver, descriptor, value);
Expand Down
8 changes: 4 additions & 4 deletions packages/helpers/esm/_class_static_private_field_update.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { _class_apply_descriptor_update } from "./_class_apply_descriptor_update.js";
import { _class_check_private_static_access } from "./_class_check_private_static_access.js";
import { _class_check_private_static_field_descriptor } from "./_class_check_private_static_field_descriptor.js";
import { _ as _class_apply_descriptor_update } from "./_class_apply_descriptor_update.js";
import { _ as _class_check_private_static_access } from "./_class_check_private_static_access.js";
import { _ as _class_check_private_static_field_descriptor } from "./_class_check_private_static_field_descriptor.js";

export function _class_static_private_field_update(receiver, classConstructor, descriptor) {
function _class_static_private_field_update(receiver, classConstructor, descriptor) {
_class_check_private_static_access(receiver, classConstructor);
_class_check_private_static_field_descriptor(descriptor, "update");

Expand Down
4 changes: 2 additions & 2 deletions packages/helpers/esm/_class_static_private_method_get.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { _class_check_private_static_access } from "./_class_check_private_static_access.js";
import { _ as _class_check_private_static_access } from "./_class_check_private_static_access.js";

export function _class_static_private_method_get(receiver, classConstructor, method) {
function _class_static_private_method_get(receiver, classConstructor, method) {
_class_check_private_static_access(receiver, classConstructor);

return method;
Expand Down
6 changes: 3 additions & 3 deletions packages/helpers/esm/_construct.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { _is_native_reflect_construct } from "./_is_native_reflect_construct.js";
import { _set_prototype_of } from "./_set_prototype_of.js";
export function _construct(Parent, args, Class) {
import { _ as _is_native_reflect_construct } from "./_is_native_reflect_construct.js";
import { _ as _set_prototype_of } from "./_set_prototype_of.js";
function _construct(Parent, args, Class) {
if (_is_native_reflect_construct()) _construct = Reflect.construct;
else {
_construct = function construct(Parent, args, Class) {
Expand Down
2 changes: 1 addition & 1 deletion packages/helpers/esm/_create_class.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function _defineProperties(target, props) {
Object.defineProperty(target, descriptor.key, descriptor);
}
}
export function _create_class(Constructor, protoProps, staticProps) {
function _create_class(Constructor, protoProps, staticProps) {
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
if (staticProps) _defineProperties(Constructor, staticProps);

Expand Down
4 changes: 2 additions & 2 deletions packages/helpers/esm/_create_for_of_iterator_helper_loose.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { _unsupported_iterable_to_array } from "./_unsupported_iterable_to_array.js";
import { _ as _unsupported_iterable_to_array } from "./_unsupported_iterable_to_array.js";

export function _create_for_of_iterator_helper_loose(o, allowArrayLike) {
function _create_for_of_iterator_helper_loose(o, allowArrayLike) {
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];

if (it) return (it = it.call(o)).next.bind(it);
Expand Down
8 changes: 4 additions & 4 deletions packages/helpers/esm/_create_super.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { _get_prototype_of } from "./_get_prototype_of.js";
import { _is_native_reflect_construct } from "./_is_native_reflect_construct.js";
import { _possible_constructor_return } from "./_possible_constructor_return.js";
import { _ as _get_prototype_of } from "./_get_prototype_of.js";
import { _ as _is_native_reflect_construct } from "./_is_native_reflect_construct.js";
import { _ as _possible_constructor_return } from "./_possible_constructor_return.js";

export function _create_super(Derived) {
function _create_super(Derived) {
var hasNativeReflectConstruct = _is_native_reflect_construct();

return function _createSuperInternal() {
Expand Down
8 changes: 4 additions & 4 deletions packages/helpers/esm/_decorate.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { _to_array } from "./_to_array.js";
import { _to_property_key } from "./_to_property_key.js";
import { _type_of } from "./_type_of.js";
import { _ as _to_array } from "./_to_array.js";
import { _ as _to_property_key } from "./_to_property_key.js";
import { _ as _type_of } from "./_type_of.js";

export function _decorate(decorators, factory, superClass) {
function _decorate(decorators, factory, superClass) {
var r = factory(function initialize(O) {
_initializeInstanceElements(O, decorated.elements);
}, superClass);
Expand Down
2 changes: 1 addition & 1 deletion packages/helpers/esm/_defaults.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export function _defaults(obj, defaults) {
function _defaults(obj, defaults) {
var keys = Object.getOwnPropertyNames(defaults);

for (var i = 0; i < keys.length; i++) {
Expand Down
2 changes: 1 addition & 1 deletion packages/helpers/esm/_define_enumerable_properties.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export function _define_enumerable_properties(obj, descs) {
function _define_enumerable_properties(obj, descs) {
for (var key in descs) {
var desc = descs[key];
desc.configurable = desc.enumerable = true;
Expand Down
2 changes: 1 addition & 1 deletion packages/helpers/esm/_define_property.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export function _define_property(obj, key, value) {
function _define_property(obj, key, value) {
if (key in obj) {
Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });
} else obj[key] = value;
Expand Down
2 changes: 1 addition & 1 deletion packages/helpers/esm/_dispose.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function dispose_SuppressedError(suppressed, error) {
return new dispose_SuppressedError(suppressed, error);
}

export function _dispose(stack, error, hasError) {
function _dispose(stack, error, hasError) {
function next() {
while (stack.length > 0) {
try {
Expand Down
2 changes: 1 addition & 1 deletion packages/helpers/esm/_export_star.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export function _export_star(from, to) {
function _export_star(from, to) {
Object.keys(from).forEach(function(k) {
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
Object.defineProperty(to, k, {
Expand Down
2 changes: 1 addition & 1 deletion packages/helpers/esm/_extends.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export function _extends() {
function _extends() {
_extends = Object.assign || function assign(target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
Expand Down
4 changes: 2 additions & 2 deletions packages/helpers/esm/_get.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { _super_prop_base } from "./_super_prop_base.js";
import { _ as _super_prop_base } from "./_super_prop_base.js";

export function _get(target, property, receiver) {
function _get(target, property, receiver) {
if (typeof Reflect !== "undefined" && Reflect.get) _get = Reflect.get;
else {
_get = function get(target, property, receiver) {
Expand Down
Loading

0 comments on commit 69719c2

Please sign in to comment.