Use the new mechanism for distinguishing Node from web compilation

This commit is contained in:
Natalie Weizenbaum 2018-03-23 15:57:03 -07:00
parent 5a38c42ef9
commit 713d179c9e
5 changed files with 5 additions and 4 deletions

View File

@ -3,4 +3,4 @@
// https://opensource.org/licenses/MIT.
export 'package:sass/src/executable.dart'
if (node) 'package:sass/src/node.dart';
if (dart.library.js) 'package:sass/src/node.dart';

View File

@ -2,4 +2,4 @@
// MIT-style license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT.
export 'node/interface.dart' if (node) 'node/implementation.dart';
export 'node/interface.dart' if (dart.library.js) 'node/implementation.dart';

View File

@ -4,4 +4,4 @@
export 'io/interface.dart'
if (dart.library.io) 'io/vm.dart'
if (node) 'io/node.dart';
if (dart.library.js) 'io/node.dart';

View File

@ -1,2 +1,2 @@
export 'package:package_resolver/package_resolver.dart'
if (node) 'sync_package_resolver/node.dart';
if (dart.library.js) 'sync_package_resolver/node.dart';

View File

@ -102,6 +102,7 @@ void _js({@required bool release}) {
var destination = new File('build/sass.dart.js');
var args = [
'--categories=Server',
'-Dnode=true',
'-Dversion=$_version',
'-Ddart-version=$_dartVersion',