Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Would it be possible to get an example of combined .js and .ts in the same project #151

Closed
scamden opened this issue Jun 29, 2016 · 5 comments

Comments

@scamden
Copy link

scamden commented Jun 29, 2016

It's not clear where the compiled js gets written in tsify and I'm unable to require the result of a compiled ts module from a js one. Is there a straightforward way to do this? Would love a simple example.

@scamden
Copy link
Author

scamden commented Jun 29, 2016

hmm i saw your test case with jsRoot but when i used that exact syntax, the module i require is found but is still the empty module.exports object...

@NeverwinterMoon
Copy link

I think I am having exactly the same issue (#152). My problem disappears if I use version 0.15.3. I don't use any additional configuration, just all the defaults.

@scamden
Copy link
Author

scamden commented Jul 2, 2016

Ya ours disappeared at 0.14.0, will try the version you mentioned also,
just for info next week
Sterling Camden
Sent from SalesforceIQ

On July 2, 2016 at 2:18 AM, [email protected] wrote:

I think I am having exactly the same issue (#152
#152). My problem disappears if
I use version 0.15.3. I don't use any additional configuration, just all
the defaults.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#151 (comment),
or mute
the thread
https://github.com/notifications/unsubscribe/ABE5mAwfdEaabTqD2Hzl2vQRvoA_Momeks5qRizogaJpZM4JBYhg
.

@cartant
Copy link
Contributor

cartant commented Aug 27, 2016

@scamden I've been going through some of the older, still-open issues.

I've added a JS/TS example. It is essentially the same as the greeter example, but with a main.js instead of a main.ts and with allowJs option specified.

Regarding your question about where the compiled JS is written: it isn't; it's held in memory and is later emitted to Browserify.

The problems you experienced with empty modules should have been fixed in the the latest - 1.0.4 - release.

@cartant cartant closed this as completed Aug 27, 2016
@scamden
Copy link
Author

scamden commented Aug 29, 2016

Thanks!

On Sat, Aug 27, 2016 at 1:56 AM Nicholas Jamieson [email protected]
wrote:

@scamden https://github.com/scamden I've been going through some of the
older, still-open issues.

I've added a JS/TS
https://github.com/TypeStrong/tsify/tree/master/examples/js example. It
is essentially the same as the greeter example, but with a main.js
instead of a main.ts and with allowJs option specified.

Regarding your question about where the compiled JS is written: it isn't;
it's held in memory and is later emitted to Browserify.

The problems you experienced with empty modules should have been fixed in
the the latest - 1.0.4 - release.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#151 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABE5mL-AKd1bWp4HMC74lx8l1ASmLs7rks5qj_u4gaJpZM4JBYhg
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants