Skip to content

Commit

Permalink
manual es6-promise
Browse files Browse the repository at this point in the history
  • Loading branch information
asukaminato0721 committed Oct 20, 2024
1 parent d135b75 commit 540785c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Print the help message.

## Development

Add the definition in `packages/data/es-shim-like/src/` or `packages/data/single-file/src/` and `create.ts` , then `npm run codegen`. Notice that rarely used package will not be added, and some packages which are just sub-deps also won't be added.
Add the definition in `packages/data/es-shim-like/src/` or `packages/data/single-file/src/` or `packages/manual` and `create.ts` , then `npm run codegen`. Notice that rarely used package will not be added, and some packages which are just sub-deps also won't be added.

## Contributions

Expand Down
6 changes: 3 additions & 3 deletions create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,7 @@ const autoGeneratedPackagesList = [
['promise.allsettled'],
['array.prototype.toreversed'],
['util.promisify', { '@nolyfill/safe-array-concat': 'workspace:*' }, '>=12.4.0'],
['typedarray.prototype.slice'],
['es6-promise']
['typedarray.prototype.slice']
] as const;

const singleFilePackagesList = [
Expand Down Expand Up @@ -149,7 +148,8 @@ const manualPackagesList = [
'es-iterator-helpers', // use rollup prebundle approach
'assert', // use rollup prebundle approach
'set-function-length', // two entries (index.js, env.js)
'is-core-module' // bundle
'is-core-module', // bundle
'es6-promise' // two entries (index.js, auto.js)
] as const;

const nonNolyfillPackagesList = [
Expand Down
3 changes: 0 additions & 3 deletions packages/data/es-shim-like/src/es6-promise.ts

This file was deleted.

Empty file.
4 changes: 4 additions & 0 deletions packages/manual/es6-promise/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
polyfill() { },
Promise
};

0 comments on commit 540785c

Please sign in to comment.