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

feat: migrate to ns7 #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

rigor789
Copy link

@rigor789 rigor789 commented Sep 5, 2020

No description provided.

Copy link
Owner

@halfnelson halfnelson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

apart from those changes (to get latest versions and to help with hmr) looks awesome

"description": "NativeScript Application",
"license": "SEE LICENSE IN <your-license-filename>",
"repository": "<fill-your-repository-here>",
"dependencies": {
"nativescript-theme-core": "^2.0.23",
"svelte-native": "^0.6.1",
"tns-core-modules": "~6.1.2"
"svelte-native": "0.9.1",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to release a fix, so this should probably be ~0.9.2

"typescript": "3.6.2"
"@nativescript/android": "7.0.0",
"svelte": "3.24.1",
"svelte-loader-hot": "0.3.0",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this can be "~0.3.0" which should pick up 0.3.1

@@ -231,7 +267,7 @@ module.exports = env => {
exclude: /node_modules/,
use: [
{
loader: 'svelte-loader',
loader: 'svelte-loader-hot',
options: {
preprocess: svelteNativePreprocessor(),
hotReload: true,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to use the following options to keep this happy

options: {
      dev: env.production ? false : true,
      preprocess: svelteNativePreprocessor(),
      hotReload: env.production ? false : true,
      hotOptions: {
           injectCss: false,
           native: true
      }
}

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

Successfully merging this pull request may close these issues.

2 participants