platanus / potassium

A Rails application generator by Platanus, inspired by Suspenders
MIT License
232 stars 17 forks source link

Alias 'vue' imports to 'vue/dist/vue.esm.js' #359

Closed iaacosta closed 1 year ago

iaacosta commented 3 years ago

Some libraries, such as vee-validate, have strange behaviors when some vue imports are not aliased to vue/dist/vue.esm.js. I think that when $attrs is used, there are also some console errors.

Should we add this as a default configuration in config/webpack/environment.js for the Vue recipe?

environment.config.merge({
  resolve: {
    alias: {
      'vue$': 'vue/dist/vue.esm.js',
    },
  },
});
difernandez commented 1 year ago

closed in #395