Remove ESM build
Since there is nothing to import, I don't think ESM can be really used.pull/1/head
parent
330131239a
commit
fcfa78f98c
|
@ -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"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
|
@ -8,11 +8,6 @@ const outputDir = './dist/';
|
|||
export default {
|
||||
input,
|
||||
output: [
|
||||
{
|
||||
name,
|
||||
format: 'esm',
|
||||
file: `${outputDir}${name}.mjs`,
|
||||
},
|
||||
{
|
||||
name,
|
||||
format: 'cjs',
|
||||
|
|
Loading…
Reference in New Issue