Make the project a ESM module

pull/37/head
Nikita Karamov 2021-07-29 13:31:37 +02:00
parent 2e3570ffc2
commit e501c0b5bb
No known key found for this signature in database
GPG Key ID: 7FCADEDBB1AEBE44
3 changed files with 14 additions and 15 deletions

10
.postcssrc.json Normal file
View File

@ -0,0 +1,10 @@
{
"plugins": {
"postcss-css-variables": {},
"postcss-calc": {},
"autoprefixer": {},
"cssnano": {
"preset": "default"
}
}
}

View File

@ -21,12 +21,11 @@
"email": "nick@karamoff.dev",
"url": "https://karamoff.dev"
},
"main": "./dist/shareon.cjs",
"module": "./dist/shareon.mjs",
"unpkg": "./dist/shareon.min.js",
"type": "module",
"main": "./shareon.legacy.js",
"module": "./shareon.js",
"exports": {
"require": "./dist/shareon.cjs",
"import": "./dist/shareon.mjs"
"import": "./shareon.js"
},
"files": [
"shareon.css",

View File

@ -1,10 +0,0 @@
module.exports = {
plugins: {
'postcss-css-variables': {},
'postcss-calc': {},
autoprefixer: {},
cssnano: {
preset: 'default',
},
},
};