typescript - module es6 may not be used when targetting es5 or lower -
according https://www.typescriptlang.org/docs/handbook/compiler-options.html @ time of writing, if @ --module option, says: "'es6' , 'es2015' values may not used when targeting es5 or lower."
however, have simple build set webpack 2 , typescript using awesome-typescript-loader. when set module 'es6', moduleresolution 'node', , target has been 'es5'... no errors , build seems work fine , runs fine in browser.
is incorrect claim in docs or going find myself in world of pain later on? it's important able use es6 module format (to knowledge) webpack 2 can perform tree shaking functionality.
Comments
Post a Comment