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"
],
"main": "./dist/shareon.cjs",
"module": "./dist/shareon.mjs",
"exports": {
"require": "./dist/shareon.cjs",
"import": "./dist/shareon.mjs"
"require": "./dist/shareon.cjs"
},
"unpkg": "./dist/shareon.min.js",
"scripts": {
@ -67,8 +65,7 @@
{
"limit": "1 KB",
"path": [
"./dist/shareon.cjs",
"./dist/shareon.mjs"
"./dist/shareon.cjs"
]
},
{

View File

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