aurelia / bundler

A library for bundling JavaScript, HTML and CSS for use with SystemJS.
MIT License
37 stars 25 forks source link

Expression with < sign in .html file errors the bundler #159

Closed ghost closed 7 years ago

ghost commented 7 years ago

I'm submitting a bug report

Please tell us about your environment:

Current behavior: We have an .html view belonging to a view model containing the following:

<template>
    <div>
        ${a < 1  ? "foo" : bar"}
    </div>
</template>

Where a is a variable in the view's viewmodel.

When running aurelia-bundler.bundle() (with the config bundles including a bundle that includes the view file obviously) we get the following error:

Error on fetch for FileName.html!github:systemjs/plugin-text@0.0.3.js at file:///Path/FileName.html!file:///Path/jspm_packages/github/systemjs/plugin-text@0.0.3.js Error: Parse Error: < 1 ? "foo" : bar"}

(Actual path names are replaced obviously)

Expected/desired behavior: The bundler should just work and not trow an error.

JeroenVinke commented 7 years ago

also getting this one in the cli: https://github.com/aurelia/cli/issues/619

ahmedshuhel commented 7 years ago

Should be fixed now. Please try v0.6.3