Skip to content

Commit

Permalink
remove extra check from view driver and use terser
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrsh committed Dec 3, 2019
1 parent 1e65d81 commit 8a63274
Show file tree
Hide file tree
Showing 8 changed files with 306 additions and 318 deletions.
4 changes: 2 additions & 2 deletions build/build.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const rollup = require("rollup");
const babel = require("rollup-plugin-babel");
const eslint = require("rollup-plugin-eslint").eslint;
const uglify = require("uglify-js");
const terser = require("terser");
const gzipSize = require("gzip-size");
const fs = require("fs");
const path = require("path");
Expand Down Expand Up @@ -60,7 +60,7 @@ async function build(package) {
output = output.replace(versionRE, `"${version}"`);

const developmentCode = comment + output.replace(envRE, "\"development\"");
const productionCode = comment + uglify.minify(output.replace(envRE, "\"production\""), {
const productionCode = comment + terser.minify(output.replace(envRE, "\"production\""), {
output: {
ascii_only: true
}
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
"@babel/preset-env": "^7.7.4",
"gzip-size": "^5.0.0",
"jest": "^24.9.0",
"rollup": "^1.27.7",
"rollup": "^1.27.8",
"rollup-plugin-babel": "^4.3.2",
"rollup-plugin-eslint": "^5.1.0",
"uglify-js": "^3.7.1"
"terser": "^4.4.2"
}
}
2 changes: 1 addition & 1 deletion packages/moon-browser/dist/moon-browser.min.js

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

Loading

0 comments on commit 8a63274

Please sign in to comment.