Description
Hello,
Nested imports in my app do not work anymore with new version 1.4.4.1 (everything was ok with 1.4.3.2).
.
When I try to run my app, I get this error:
W20170413-16:24:50.671(2)? (STDERR) D:\todo\.meteor\local\build\programs\server\app\app.js:3029 W20170413-16:24:50.848(2)? (STDERR) import { mailError } from '/server/mailing.js'; W20170413-16:24:50.851(2)? (STDERR) ^^^^^^ W20170413-16:24:50.853(2)? (STDERR) W20170413-16:24:50.855(2)? (STDERR) SyntaxError: Unexpected reserved word
The source code is something like:
export const myFunction= function(arg) { // ... const res = otherFunction(); // ... if (arg == res) { import { mailError } from '/server/mailing.js'; mailError("Error !"); } // ... };
Thanks for your help.