Open mjog opened 3 years ago
If you look at the docs, you'll see that Parcel does indeed support custom Vue blocks, but they are a different style to the way it's done in Webpack. If you look at the tutorial for adding vue-i18n
to Webpack, you need to install vue-i18n-loader to use it there. You'll need to port that package over to the Parcel preprocessor format to get this working.
π bug report
It seems that Vue custom blocks aren't working in Parcel 2, since when trying to use vue-i18n, I can't use
<i18n>
blocks in single file components.π Configuration (.babelrc, package.json, cli command)
package.json:
π€ Expected Behavior
Able to use vue-i18n
π― Current Behavior
π Possible Solution
π€·
π¦ Context
vue-i18n's
<i18n>
blocks are needed for proper compartmentalisation of i18n resources in a Vue app.π» Code Sample
See vue-i18n's docs in link above.
π Your Environment