localized-strings icon indicating copy to clipboard operation
localized-strings copied to clipboard

New release optimized for modern browsers and Angular 2

Open jnmronquillo opened this issue 3 years ago • 0 comments

By default localized-strings is transpiling to commonjs modules, when used in Angular it shows this Warning:

[my-angular-library] depends on 'localized-strings'. CommonJS or AMD dependencies can cause optimization bailouts. For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

Though this warning can be disabled it may be better that the transpilation process does not change the EcmaScript module used in source code. According to Babel documentation this can be achieved adding an option modules : false in the configuration file .babelrc

"presets": [["env", { "modules" : false}]],

I'm not an expert so I don't know what other options could be added to optimize localized-strings for modern browsers.

jnmronquillo avatar Jun 17 '21 08:06 jnmronquillo