Commit d182c1d
committed
Remove use of 'const' in js to allow plugin to be 'browserify'ed (cordova --browserify). Being part of ES6 and not supported by all browser, this fails to parse with some libraries; in the case of cordova's browserify process an error is generated:
SyntaxError: Unexpected token (2476:6) (while aliasify was processing <project>/plugins/plugin.google.maps/www/googlemaps-cdv-plugin.js) while parsing file: <project>/plugins/plugin.google.maps/www/googlemaps-cdv-plugin.js
This error comes from the acorn library (dependency of the aliasify module): node_modules/cordova/node_modules/cordova-lib/node_modules/aliasify/node_modules/browserify-transform-tools/node_modules/falafel/node_modules/acorn1 parent 0693eee commit d182c1d
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2474 | 2474 | | |
2475 | 2475 | | |
2476 | 2476 | | |
2477 | | - | |
| 2477 | + | |
2478 | 2478 | | |
2479 | 2479 | | |
2480 | 2480 | | |
| |||
0 commit comments