Skip to content

Commit

Permalink
[Refactor] remove ESM entry points
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Oct 1, 2021
1 parent 32dec9f commit 667d2b9
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 48 deletions.
7 changes: 0 additions & 7 deletions implementation.mjs

This file was deleted.

27 changes: 3 additions & 24 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,30 +12,9 @@
},
"./index.js"
],
"./polyfill": [
{
"import": "./polyfill.mjs",
"require": "./polyfill.js",
"default": "./polyfill.js"
},
"./polyfill.js"
],
"./implementation": [
{
"import": "./implementation.mjs",
"require": "./implementation.js",
"default": "./implementation.js"
},
"./implementation.js"
],
"./shim": [
{
"import": "./shim.mjs",
"require": "./shim.js",
"default": "./shim.js"
},
"./shim.js"
],
"./polyfill": "./polyfill.js",
"./implementation": "./implementation.js",
"./shim": "./shim.js",
"./auto": "./auto.js",
"./package.json": "./package.json"
},
Expand Down
7 changes: 0 additions & 7 deletions polyfill.mjs

This file was deleted.

7 changes: 0 additions & 7 deletions shim.mjs

This file was deleted.

6 changes: 3 additions & 3 deletions test/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ test('named exports', async (t) => {
);

const { shim, getPolyfill, implementation } = atModule;
t.equal(await import('array.prototype.at/shim'), shim, 'shim named export matches deep export');
t.equal(await import('array.prototype.at/implementation'), implementation, 'implementation named export matches deep export');
t.equal(await import('array.prototype.at/polyfill'), getPolyfill, 'getPolyfill named export matches deep export');
t.equal((await import('array.prototype.at/shim')).default, shim, 'shim named export matches deep export');
t.equal((await import('array.prototype.at/implementation')).default, implementation, 'implementation named export matches deep export');
t.equal((await import('array.prototype.at/polyfill')).default, getPolyfill, 'getPolyfill named export matches deep export');

t.end();
});

0 comments on commit 667d2b9

Please sign in to comment.