Pass --omit-implicit-checks to dart2js in release mode (#473)

Substantially addresses #113
This commit is contained in:
Natalie Weizenbaum 2018-09-11 14:39:47 -07:00 committed by GitHub
parent 1a5eb2a2e3
commit 918a3fedf2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,9 @@
## 1.13.4
### Node JS
* Tweak JS compilation options to substantially improve performance.
## 1.13.3
* Properly generate source maps for stylesheets that emit `@charset`
@ -38,7 +44,7 @@
* Add a `SassException` type that provides information about Sass compilation
failures.
### JS API
### Node JS API
* Remove the source map comment from the compiled JS. We don't ship with the
source map, so this pointed to nothing.

View File

@ -1,5 +1,5 @@
name: sass
version: 1.13.3
version: 1.13.4
description: A Sass implementation in Dart.
author: Dart Team <misc@dartlang.org>
homepage: https://github.com/sass/dart-sass

View File

@ -35,7 +35,7 @@ void _js({@required bool release}) {
'-Dversion=$version',
'-Ddart-version=$dartVersion',
];
if (release) args..add("--minify")..add("--trust-type-annotations");
if (release) args..add("--minify")..add("--omit-implicit-checks");
Dart2js.compile(new File('bin/sass.dart'),
outFile: destination, extraArgs: args);