vuejs / vueify

Browserify transform for single-file Vue components
MIT License
1.17k stars 152 forks source link

unable to use coffee script #187

Closed apoorvasrinivasan closed 7 years ago

apoorvasrinivasan commented 7 years ago

On using coffee script, it says \

  'import' and 'export' may only appear at the top level (3:0)

vue.config.js is like this

          module.exports = {
           coffee: {
                  includePaths: ['coffee-script', 'coffee-loader']
              }
         }

App.vue

       <script lang = 'coffee'>
       import OtherComponent from './otherComponent.vue'
       module.exports = 
           name:'app'
            ...... code