Skip to content

Commit

Permalink
Revert "add microbundle (vercel#487)" (vercel#492)
Browse files Browse the repository at this point in the history
This reverts commit 415ab93.
  • Loading branch information
shuding authored Jun 30, 2020
1 parent 3a2ee1e commit 5ff5866
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 2,627 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
dist/**/*
esm/**/*
node_modules
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
node_modules
dist
esm
*.log
*.tgz
.env
Expand Down
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@
"name": "swr",
"version": "0.2.3",
"description": "React Hooks library for remote data fetching",
"source": "src/index.ts",
"main": "dist/index.js",
"module": "dist/index.module.js",
"umd:main": "dist/index.umd.js",
"unpkg": "dist/index.umd.js",
"react-native": "dist/index.module.js",
"types": "dist/index.d.ts",
"main": "./dist/index.js",
"module": "./esm/index.js",
"react-native": "./esm/index.js",
"types": "./dist/index.d.ts",
"files": [
"dist/**"
"dist/**",
"esm/**"
],
"repository": "vercel/swr",
"homepage": "https://swr.now.sh",
"license": "MIT",
"scripts": {
"dev": "vercel dev",
"build": "microbundle",
"build": "npm run build:esm && npm run build:cjs",
"build:cjs": "ncc build src/index.ts -o dist -m -e react",
"build:esm": "tsc --module ES6 --outDir esm",
"watch": "tsc --watch",
"types:check": "tsc --noEmit",
"format": "prettier --write \"{src,test,examples}/**/*.{ts,tsx}\"",
Expand All @@ -44,12 +44,12 @@
"@types/react": "16.9.11",
"@typescript-eslint/eslint-plugin": "2.5.0",
"@typescript-eslint/parser": "2.5.0",
"@zeit/ncc": "0.20.5",
"eslint": "6.6.0",
"eslint-config-prettier": "6.5.0",
"husky": "2.4.1",
"jest": "24.9.0",
"lint-staged": "8.2.1",
"microbundle": "0.12.2",
"prettier": "1.18.2",
"react": "16.11.0",
"react-dom": "16.11.0",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"lib": [
"esnext", "dom"
],
"module": "esnext",
"module": "commonjs",
"moduleResolution": "node",
"noEmitOnError": true,
"noFallthroughCasesInSwitch": true,
Expand Down
Loading

0 comments on commit 5ff5866

Please sign in to comment.