Closed
Description
The following command works on version v20170521, however it falls over on version v20170626 through to the latest.
java -jar ./tools/closure-compiler/v20170521.jar --language_in=ECMASCRIPT6 --js_output_file=build/bundle.js --dependency_mode=STRICT --entry_point=src/index.js --js src/index.js --js src/orange.js --js src/apple.js
Falls over with
ERROR - required "module$src$apple" namespace never provided
import apple from './apple.js'
I'm using the ES6 import/export statements.
// index.js
import apple from './apple.js'
console.log(apple.getColour())
// apple.js
console.log('apple loaded')
import orange from './orange.js'
var apple = {}
apple['getColour'] = function(){
return 'Green'
}
apple['getType'] = function(){
return 'Granny Smith'
}
export default apple
// orange.js
console.log('Oranges loaded')
var test = {}
export default test
Metadata
Metadata
Assignees
Labels
No labels