BoltDoggy / parcel-plugin-vue

⚠️ parcel-bundler/parcel @1.7.0 support Vue Now. This plugin will be not recommended.
https://github.com/parcel-bundler/parcel
209 stars 15 forks source link

Style import doesn't work if async import used #29

Open mikkiek opened 6 years ago

mikkiek commented 6 years ago

I'm having an issue if i'm using async import and css import. Seems it's issue related to HMR

index.js

import './bug.css';

setTimeout(() => {
    import('./test')
        .then(module => console.log(module))
    ;
}, 1000);

Issue http://prntscr.com/imy88a http://prntscr.com/imy8fk

Software Version(s)
parcel-plugin-vue BoltDoggy/parcel-plugin-vue#develop
Parcel 1.6.2
Vue 2.5.13
Node 9.3.0
mikkiek commented 6 years ago

I've created PR #30 , hope it will help.

Thank you