You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Dev, the application works fine , but when building or running with --production flag , i get errors due to minification.
I tried to verify the files that cause errors by displaying the input of standard-minifier-js pckage
and it seems like meteor does not transpile source from server modules imported dynamically inside functions like ../../server/moduleWithFunction ( copy them as they are with import, export, etc )
The result is the same when i replace standard-minifier-js with abernix:standard-minifier-js@2.1.0
NPM Packages
@babel/runtime: "7.0.0-beta.55"
meteor-node-stubs: "^0.4.1"
Meteor Packages
dynamic-import@0.4.2
es5-shim@4.8.0
ecmascript@0.11.1
standard-minifier-css@1.4.1
standard-minifier-js@2.3.4
xxxxx:api
xxxxx:client-web
xxxxx:client-mobile
The text was updated successfully, but these errors were encountered:
nabiltntn
changed the title
[1.7.0.4 ] Minify errors with dynamically imported server module
[1.7.0.4 ] Minify errors with dynamically imported server modules
Aug 24, 2018
Hi,
i have recently upgraded my application from 1.5 to 1.7.0. 4
It uses packages structure like this :
The idea is to to separate mobile and web code when creating bundles. Both of them are declared with
lazy: true
web
mobile
In the api package, i am defining ValidatedMethods that import modules from server ( following Meteor Guide to hide secret server code ) like this :
To call these mthods from web and mobile package, i import them like this :
In Dev, the application works fine , but when building or running with --production flag , i get errors due to minification.
I tried to verify the files that cause errors by displaying the input of standard-minifier-js pckage
and it seems like meteor does not transpile source from server modules imported dynamically inside functions like
../../server/moduleWithFunction
( copy them as they are with import, export, etc )The result is the same when i replace standard-minifier-js with abernix:standard-minifier-js@2.1.0
NPM Packages
Meteor Packages
The text was updated successfully, but these errors were encountered: