I've encountered an issue while using the webpack-simple-2.0 template for Vue.js (version 2.0.0-beta.5).
When I include export const FOO='bar'
in my main.js
file, I'm unable to successfully import { FOO }
in another .js file - it always returns as undefined
. Interestingly, this problem doesn't occur if I place the export statement in any other .js file except for main.js
.
Since main.js
is where Vue is initialized and serves as the entry point for webpack, could this be restricting what I can export from it?