Skip to content

Wrong target should throw the exception #13

@ceremcem

Description

@ceremcem

I tried to define chrome: 42 as target and bubleify didn't throw any exception. I tried to create a browserify transform on my own and pass chrome: 42 as target:

my-buble = (input) ->
    es5 = buble.transform input, do
        target:
            chrome: 42
            firefox: 44
    es5.code

bundler
    ..transform browserify-livescript 
    ..transform (file) ->
        through (buf, enc, next) ->
            content = buf.to-string \utf8
            try
                es5 = my-buble content
                @push es5
                next!
            catch
                @emit 'error', e

...and it threw the following exception:

Error: Support data exists for the following versions of chrome: 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63. Please raise an issue at https://github.com/Rich-Harris/buble/issues

so bubleify should throw the same exception.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions