Skip to content

Commit

Permalink
🔨 config(build): Use microbundle instead of @babel/cli.
Browse files Browse the repository at this point in the history
  • Loading branch information
make-github-pseudonymous-again committed Jul 28, 2021
1 parent 5d3aecb commit fb77e24
Show file tree
Hide file tree
Showing 4 changed files with 1,632 additions and 816 deletions.
2 changes: 1 addition & 1 deletion .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
exclude_patterns:
- doc/**
- lib/**
- dist/**
- test/**
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
!yarn.lock

# Generated files
/lib
/dist

# Dependency directory
node_modules
Expand Down
21 changes: 17 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,25 @@
"structure"
],
"sideEffects": false,
"main": "lib/index.js",
"source": "src/index.js",
"main": "dist/index.cjs",
"module": "dist/index.module.js",
"esmodule": "dist/index.modern.js",
"umd:main": "dist/index.umd.js",
"unpkg": "dist/index.umd.js",
"exports": {
".": {
"browser": "./dist/index.module.js",
"umd": "./dist/index.umd.js",
"require": "./dist/index.cjs",
"default": "./dist/index.modern.js"
}
},
"files": [
"lib"
"dist"
],
"scripts": {
"build": "babel src -d lib",
"build": "NODE_ENV=production microbundle",
"build-docs": "esdoc",
"build-gh-pages": "npm run build-docs",
"commit-msg": "commitlint --edit",
Expand All @@ -43,7 +56,6 @@
},
"dependencies": {},
"devDependencies": {
"@babel/cli": "7.13.10",
"@babel/core": "7.13.10",
"@babel/preset-env": "7.13.10",
"@babel/register": "7.13.8",
Expand All @@ -63,6 +75,7 @@
"esdoc-standard-plugin": "1.0.0",
"fixpack": "4.0.0",
"husky": "7.0.1",
"microbundle": "0.13.1",
"np": "6.5.0",
"pinst": "2.1.6",
"power-assert": "1.6.1",
Expand Down
Loading

0 comments on commit fb77e24

Please sign in to comment.