-
-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to import from an ES6 module in a component (SFC) ? #14
Labels
enhancement
New feature or request
Comments
Raphael, you have 2 options:
|
Ok great, thank you for your answer !
|
return {content: content, type: ".mjs"} |
After the updates is there a new solution for this? |
vue3-sfc-loader v0.8.3 for vue2 is my options:
|
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
First I wan't to thank you for this librairy which is going to be very useful for me.
I can't manage to import from a module inside a
script
tag of a .vue fileFor example :
The line
_import { label } from "./../tools.js";_
raises the following error.
_'import' and 'export' may appear only with 'sourceType: "module"' (2:0)_
I tried adding
type="module"
to thescript
tag but it didn't work either.Is it possible to do that ? How ?
Thank you for your answer
Raphael
The text was updated successfully, but these errors were encountered: