Comments (9)
Which internals do you need access to?
from nativescript-vue.
For example in https://github.com/rigor789/nativescript-vue/blob/master/nativescript-vue/platform/nativescript/runtime/patch.js I'm importing createPatchFunction from core. Or https://github.com/rigor789/nativescript-vue/blob/master/nativescript-vue/platform/nativescript/compiler.js exports directly from vue core. These things should be left unexported though. I think, it is very rare that someone would actually need to use these.
Only issue with this is that it requires me to set up a roll-up config that sets up the same aliases as vue, so when bundling I don't get errors of unknown modules due to aliases.
from nativescript-vue.
Understood. I agree and also don't see a better alternative, though granted, I have a very limited understanding of NativeScript.
from nativescript-vue.
I'm more familiar with how we do things in Angular + NativeScript, which is to use elements of Angular/core with NativeScript's bridge to Angular, as set up in package.json like this:
"dependencies": {
"@angular/common": "4.1.1",
"@angular/compiler": "4.1.1",
"@angular/core": "4.1.1",
"@angular/forms": "4.1.1",
"@angular/http": "4.1.1",
"@angular/platform-browser": "4.1.1",
"@angular/platform-browser-dynamic": "4.1.1",
"@angular/router": "4.1.1",
"nativescript-angular": "3.0.0",
"nativescript-ngx-fonticon": "~2.2.0",
"reflect-metadata": "~0.1.10",
"rxjs": "~5.3.1",
"tns-core-modules": "3.0.0",
"zone.js": "~0.8.10"
},
--can we follow a similar strategy with Vue? @chrisvfritz ?
from nativescript-vue.
Unfortunately, vue doesn't utilize sub modules like angular does.
On one hand it really does make it harder to integrate, but on the other hand from a end user perspective I'd much rather have one dependency, than multiple that I have to keep track of.
from nativescript-vue.
Anything that ties into Vue internals and we expose as an independent package will be here. That includes a template compiler and server renderer.
The vue-loader package is a great place to look for an example of consuming the template compiler, parsing single-file components, etc.
from nativescript-vue.
One of the possible solutions to not having to bundle Vue is if there was an official package for creating custom renderers. I opened an thread in the vue repository to get the conversation going: vuejs/vue#7005
from nativescript-vue.
Closing because at this point we are not able to do this, will re-visit once Vue is broken up into smaller pieces according to plans.
from nativescript-vue.
We are locking this issue because it has been closed for more than 14 days.
If the issue comes up again please open a new issue with additional details.
from nativescript-vue.
Related Issues (20)
- For the beta versions that supports vue 3, the tabview, tabs and bottomnavigation doesnt work. HOT 1
- Unhandled error during execution of scheduler flush. - when using TextField's @textChange with style? HOT 4
- Is ListView supported in 3.0.0-beta? HOT 3
- Add component for template android and ios
- Vue 3: Can't use ios.position and android.position in ActionItem HOT 2
- Axios not supported in Nativescript-Vue apps anymore HOT 2
- v3 version a question HOT 2
- ListView event itemTap differences with the documentation HOT 3
- vite support HOT 1
- Vue DevTools on v3 HOT 4
- How do you programmatically trigger a tap event on a button ? HOT 4
- TabView on Vue3 HOT 2
- docs: A re-write of the NativeScript-Vue documentation site. HOT 2
- navigation in Vue beta 9 or 10 is broken in production mode HOT 4
- vueDevtools not working HOT 2
- Command failed: ruby -e "require 'xcodeproj' HOT 1
- error: Build input file cannot be found: metadata-x86_64.bin HOT 4
- Vue 3: android.startActivity & android.foregroundActivity are undefined HOT 4
- Support for Volar (AKA Vue Language Tools) in VS Code, vue-tsc, etc HOT 3
- Vue Devtools stop working HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nativescript-vue.