This repository has been archived by the owner on Oct 28, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 38
Allowing validating ES5 code with module=true #70
Labels
Milestone
Comments
@amitdahan does this work |
No unfortunately that fails when it encounters the |
@amitdahan hmmm...could you paste a code sample of what the transpiled code we're discussing looks like? Also, could you paste what transpiling config—like a To provide you with more context, here's a link to Acorn's Parser README. |
https://gist.github.com/amitdahan/0a571323da388668d1b88649c2b9d435 Simple enough, use TypeScript to target ES5 with the exception of modules. |
Tried using |
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Requested Update
Allow validating code written in ES5 EXCEPT module imports/exports.
Why Is This Update Needed?
We're transpiling our code to ES5 but still use ES modules to allow for tree-shaking.
We wanted to make sure our generated code is ES5 with the exception of the module syntax which will be handled by webpack in consuming projects (talking about an internal lib).
We need to somehow ignore import/export syntax while still ES5-check our code, if possible/makes sense to you guys.
Thanks a bunch!
The text was updated successfully, but these errors were encountered: