-
Notifications
You must be signed in to change notification settings - Fork 1k
Any future support for ES6 Node application #439
Comments
pkg is just using Node and there is information here about using To turn that on in pkg you'll need to see here - https://github.com/zeit/pkg#options You'd do something like this: |
You can also use babel to transpile your code and package that instead. |
@theogravity did you try to use pkg on a transpiled babel project? My But then I got the same error (outup as warning):
I was just wondering if anyone is able to pkg for linux, windows and mac. |
@shahajipatil |
Would love to see support for esm especially as a lot of my dependencies are using it. |
I got this error when I use
How do I enable a plugin? Parser plugin isn't mentioned in README. Note that I'm using Node.js 10, which supports |
@sheepsteak's suggestion works as long as there are no imports but something as simple as the following fails:
Saving this to a file called
|
@ChrisMagnuson wouldn't you need to use |
Did some of you succeeded to use pkg without transpiling? @OmgImAlexis @ChrisMagnuson |
I gave up and webpacked my node backend -- got it packaged. Still struggling with __dirname pathing to runtime assets, as __dirname is no more with type="module". |
@gmcdev
It is the same with |
Still fail
|
Support will be for Node 12 and 14 going forward. Thanks! |
@leerob So ES6 modules should already work with |
I try it with
|
@leerob So ES6 modules should already work with pkg with Node 14 or it's still in development? |
I find it weird that even though node 16 is in Active LTS, neither I have moved my project to modules because some npm packages are module only now. It looks like at this point in time I either have to use old packages or can't compile my project (sad) |
@GeneralBaduar Follow updates #1323 |
Any future updates for supporting ES6 node application. My application is developed in ES6 compatible code like import which is not supported by PKG.
The text was updated successfully, but these errors were encountered: