Remove ESM build

Since there is nothing to import, I don't think ESM can be really used.
pull/1/head
Nikita Karamov 2020-03-25 22:51:16 +01:00
parent 330131239a
commit fcfa78f98c
No known key found for this signature in database
GPG Key ID: E40DFE6E993540FF
2 changed files with 2 additions and 10 deletions

View File

@ -23,10 +23,8 @@
"README.md" "README.md"
], ],
"main": "./dist/shareon.cjs", "main": "./dist/shareon.cjs",
"module": "./dist/shareon.mjs",
"exports": { "exports": {
"require": "./dist/shareon.cjs", "require": "./dist/shareon.cjs"
"import": "./dist/shareon.mjs"
}, },
"unpkg": "./dist/shareon.min.js", "unpkg": "./dist/shareon.min.js",
"scripts": { "scripts": {
@ -67,8 +65,7 @@
{ {
"limit": "1 KB", "limit": "1 KB",
"path": [ "path": [
"./dist/shareon.cjs", "./dist/shareon.cjs"
"./dist/shareon.mjs"
] ]
}, },
{ {

View File

@ -8,11 +8,6 @@ const outputDir = './dist/';
export default { export default {
input, input,
output: [ output: [
{
name,
format: 'esm',
file: `${outputDir}${name}.mjs`,
},
{ {
name, name,
format: 'cjs', format: 'cjs',