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"
|
"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"
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -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',
|
||||||
|
|
Loading…
Reference in New Issue