Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Future plans #14

Open
notrs opened this issue May 24, 2017 · 13 comments
Open

Future plans #14

notrs opened this issue May 24, 2017 · 13 comments
Assignees

Comments

@notrs
Copy link

notrs commented May 24, 2017

Is there a roadmap for this project? Also, will this be adapted to allow import statements to work?

ex:
import {SDK} from 'microsoft-speech-browser-sdk';

@RaviPidaparthi
Copy link
Member

Thanks for asking. We will add a roadmap to the wiki soon.

I think your question is more related to ES6?

If you are using typescript you can do imports today because typescript abstracts away the module resolution logic and lets you decide this at compile/transpile time.
If you check our gulp file you will see that it compiles to ES5 and uses AMD module resolution.
pipe(ts({
target: "ES5",
declaration: true,
noImplicitAny: true,
removeComments: true,
module: "AMD",
out: 'speech.browser.sdk.js'
}))

If you are using javascript you can't do import directly as the library is on ES5. Instead you would have to use require.js to do the module resolution.

If you really want to have ES6 modules and not depend on any external module libraries you can build the sdk yourself by targeting ES6. Just change the build task to target ES6 instead.

@notrs
Copy link
Author

notrs commented May 24, 2017

I am in a typescript project(Angular) and when trying to import the module, there is an error stating that the file is not a module

http://i.imgur.com/4peBgFr.jpg

@RaviPidaparthi RaviPidaparthi self-assigned this May 26, 2017
@RaviPidaparthi
Copy link
Member

I would have expected that to work. Let me write up a working sample and I will share that with you.

@jawetzel
Copy link

jawetzel commented Jun 9, 2017

Any sort of update on this issue, or when it might get an update?

@RaviPidaparthi
Copy link
Member

We are looking into this and will provide an update next week,

@notrs
Copy link
Author

notrs commented Jun 28, 2017

Thanks for looking into this Rav, is there any kind of issue that came up in trying to resolve this?

@scarroll32
Copy link

Is this repo the only official Microsoft SDK for Javascript? Is there a CDN anywhere hosting the SDK?

@notrs
Copy link
Author

notrs commented Jul 19, 2017

Any chance of getting an update on this issue? Thanks!

@priyaravi20
Copy link

Yes currently this is the only source. Thanks for feedback on CDN. We don't have plans on hosting in CDN currently.

@jawetzel
Copy link

Thanks, but i meant the original issue of this library supporting import statements that was being supported by RaviPidaparthi

@priyaravi20
Copy link

Sorry we do not have support currently. We plan to have angularjs support in a future release.

@jawetzel
Copy link

Its not just angularJs support, the ability to import a project using var package = require('package') would allow usage for any javascript frameworks including react, angularjs, and several more. My question ended up being when require will be supported as depicted in the image on post #3

@priyaravi20 priyaravi20 assigned raaaar and unassigned RaviPidaparthi Oct 23, 2017
@salvoravida
Copy link
Contributor

look @ #52

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

No branches or pull requests

7 participants