vaadin / flow

Vaadin Flow is a Java framework binding Vaadin web components to Java. This is part of Vaadin 10+.
Apache License 2.0
616 stars 169 forks source link

Cannot disable ES5 transpilations #5350

Open anasmi opened 5 years ago

anasmi commented 5 years ago

Moved from here: https://github.com/vaadin/framework/issues/11504

If I disable the ES5 transpile in the maven build, with true, I still get the following exception, even with latest Chrome and also Safari:

java.lang.IllegalArgumentException: Failed to find the bundle manifest file 'frontend://vaadin-flow-bundle-manifest.json' in the servlet context for 'ES5' browsers. If you are running a dev-mode servlet container in maven e.g. jetty:run change it to jetty:run-exploded. If you are not compiling frontend resources, include the 'vaadin-maven-plugin' in your build script. Otherwise, you can skip this error either by disabling production mode, or by setting the servlet parameter 'original.frontend.resources=true'. Vaadin plugin is obsviouly enabled, just skipping ES5, but this error happens anyway. ES5 support is pretty useless for me, so I would like to avoid having to compile it.

Can you fix this bug, please?

gsedlacz commented 5 years ago

The issue is remains present in 14.0.0.beta3. As this is an officially documented feature a bugfix would be nice.

Thank you.

Artur- commented 5 years ago

Workaround:

echo "{}" > src/main/webapp/frontend-es5/vaadin-flow-bundle-manifest.json
Artur- commented 5 years ago

With npm and latest 14 SNAPSHOT, you can do

module.exports.plugins[0].targets.pop()

in webpack.config.js to remove the es5 permutation

jm-ferreira commented 4 years ago

Starting from Vaadin 14.2 ES5 transpilation is disabled by default while running in DevMode.

jcgueriaud1 commented 4 years ago

Is it fixed? Apparently there is a configuration devmode.transpile but it's not documented here: https://vaadin.com/docs/v14/flow/advanced/tutorial-all-vaadin-properties.html

I've opened a ticket: https://github.com/vaadin/flow-and-components-documentation/issues/1289