Skip to content

Commit

Permalink
fix: update dependencies to their latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
osdevisnot committed Aug 10, 2020
1 parent 4aeade0 commit 3dbf2d9
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 33 deletions.
2 changes: 1 addition & 1 deletion examples/react-component/dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions examples/react-sc-typescript/dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/react-typescript/dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/scaffold-typescript/dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/scaffold/dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 13 additions & 13 deletions package.json
Expand Up @@ -39,44 +39,44 @@
"useTabs": true
},
"devDependencies": {
"@babel/core": "7.10.4",
"@babel/core": "7.11.1",
"@babel/plugin-proposal-class-properties": "7.10.4",
"@babel/plugin-proposal-decorators": "7.10.4",
"@babel/plugin-proposal-object-rest-spread": "7.10.4",
"@babel/plugin-proposal-decorators": "7.10.5",
"@babel/plugin-proposal-object-rest-spread": "7.11.0",
"@babel/plugin-transform-regenerator": "7.10.4",
"@babel/preset-env": "7.10.4",
"@babel/preset-env": "7.11.0",
"@babel/preset-react": "7.10.4",
"@babel/preset-typescript": "7.10.4",
"@osdevisnot/prettier": "6.0.0",
"@rollup/plugin-babel": "5.0.4",
"@rollup/plugin-commonjs": "13.0.0",
"@rollup/plugin-babel": "5.1.0",
"@rollup/plugin-commonjs": "14.0.0",
"@rollup/plugin-json": "4.1.0",
"@rollup/plugin-node-resolve": "8.1.0",
"@rollup/plugin-node-resolve": "8.4.0",
"@rollup/plugin-replace": "2.3.3",
"@rollup/pluginutils": "3.1.0",
"@types/node": "14.0.22",
"@types/node": "14.0.27",
"@zeit/ncc": "0.22.3",
"babel-plugin-codegen": "4.0.1",
"babel-plugin-dev-expression": "0.2.2",
"babel-plugin-emotion": "10.0.33",
"babel-plugin-macros": "2.8.0",
"babel-plugin-styled-components": "1.10.7",
"babel-plugin-styled-components": "1.11.1",
"babel-plugin-transform-async-to-promises": "0.8.15",
"cz-conventional-changelog": "3.2.0",
"deepmerge": "4.2.2",
"del": "5.1.0",
"getopts": "2.2.5",
"gzip-size": "5.1.1",
"kleur": "4.0.2",
"kleur": "4.0.3",
"mkdirp": "1.0.4",
"patch-package": "6.2.2",
"pretty-bytes": "5.3.0",
"rollup": "2.21.0",
"rollup": "2.23.1",
"rollup-plugin-node-globals": "1.4.0",
"semantic-release": "17.1.1",
"servor": "4.0.2",
"sort-package-json": "1.44.0",
"terser": "4.8.0",
"typescript": "3.9.6"
"terser": "5.0.0",
"typescript": "3.9.7"
}
}
@@ -1,5 +1,5 @@
diff --git a/node_modules/@rollup/plugin-commonjs/dist/index.js b/node_modules/@rollup/plugin-commonjs/dist/index.js
index 659193f..517a559 100644
index 737994a..13ff3af 100644
--- a/node_modules/@rollup/plugin-commonjs/dist/index.js
+++ b/node_modules/@rollup/plugin-commonjs/dist/index.js
@@ -179,10 +179,10 @@ function equals(a, b, strict) {
Expand Down
13 changes: 6 additions & 7 deletions src/packages/terser.js
Expand Up @@ -12,11 +12,10 @@ import { minify } from 'terser'
import { error } from '../logger'
import merge from 'deepmerge'

const transform = (code, options) => {
const result = minify(code, options)
if (result.error) {
throw result.error
}
const transform = async (code, options) => {
const result = await minify(code, options).catch((error) => {
throw error
})
return result
}

Expand Down Expand Up @@ -45,12 +44,12 @@ export const terser = (options = {}) => {
return {
name: 'terser',

renderChunk(code, chunk) {
async renderChunk(code, chunk) {
if (!filter(chunk.fileName)) return null

let result
try {
result = transform(code, opts)
result = await transform(code, opts)
try {
if (cache && opts.nameCache) {
cache.nameCache = opts.nameCache
Expand Down

0 comments on commit 3dbf2d9

Please sign in to comment.