-
Notifications
You must be signed in to change notification settings - Fork 37
import syntax support in server-side src/node_modules #467
Comments
Thanks for filing a bug report. We should be transpiling node_modules, so it's strange that you're seeing this. Here is our test case around node_module transpilation: fusion-cli/test/compiler/api.js Lines 336 to 368 in 83894b4
We might need to add some assertions, or get an example repo that demonstrates this issue in order to debug this. |
@KevinGrandon thanks for answer. Now, when i do this, fusion-cli fined them (not say "can not find module MyApp"), but can not parse them with error "Unexpected token import". Just ignored **/node_modules. |
Fusion.js currently transpiles and bundle That said, I think it might be reasonable to assume To do this, I think we would simply need to adjust the appropriate globs accordingly. |
@rtsao i have my own projects with react-scripts SSR (not so cool like fusion :) ), and src/node_modules/ correct resolves on server-side too. |
Type of issue
Bug
Current behavior
Places in src/node_modules/ components did not parse.
Expected behavior
Places in src/node_modules/ components will parse as well.
By react-scripts parsed well. Officialy. facebook/create-react-app#1065
Your environment
fusion-cli version: 1.8.4
Node.js version (
node --version
): 9.11.1npm version (
npm --version
): 6.3.0Operating System: Ubuntu-18
The text was updated successfully, but these errors were encountered: