Skip to content
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

How to disable imports or specify a custom file? #182

Closed
ghost opened this issue Nov 18, 2020 · 0 comments
Closed

How to disable imports or specify a custom file? #182

ghost opened this issue Nov 18, 2020 · 0 comments

Comments

@ghost
Copy link

ghost commented Nov 18, 2020

I'm using the compiled file in the browser (Chromium only), and I need to specify the path like this (otherwise it throws an error):

import { createApp, createVNode, createTextVNode } from "./vue-files/vue.esm-browser.js";

Even if I add this line manually, the plugin still adds

import { createVNode, createTextVNode } from "vue";

which causes an error.

P.S. I've found https://github.com/FollowmeTech/babel-plugin-replace-import-path which replaces the path automatically. Leaving it here in case someone finds it helpful, or if someone knows a better solution.

@ghost ghost closed this as completed Nov 18, 2020
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants