-
Notifications
You must be signed in to change notification settings - Fork 147
Doesn't work with webpack-serve using its --require or -r flag - "Unexpected token import" #399
Comments
Ohhh....
|
Wait a minute!
Seems like it got implemented anyway - should have read the whole thread before the previous comment. |
Got it working using a tip inspired from webpack-contrib/webpack-serve#51 (comment)
Though neither ideal and quite intuitive, it's okay for now. I'll open an issue over at |
Opened at webpack-contrib/webpack-serve#138 |
@jdalton Done: https://github.com/oles/webpack-serve-esm Thanks for looking into this 👍 |
Confirmed |
You inspire me, John-David. Really cool to see you're pushing and inspiring others to make ESM awesome. All my projects recently has "esm" inside its devdeps 👍
Which brings me to this issue.
webpack -r esm
works perfectly, butwebpack-serve -r esm
does not.I could not find any issues regarding it here nor on https://github.com/webpack-contrib/webpack-serve
The same config file is used by both
webpack
andwebpack-serve
, but the later complains aboutUnexpected token import
Seems like
webpack-serve
is doing some magic to its require implementation: webpack-contrib/webpack-serve#83 - and it seems like this issue is on their cape.Any suggestions before I open an issue there as well?
The text was updated successfully, but these errors were encountered: