diff --git a/demo-angular/package.json b/demo-angular/package.json index 0577e72..ba4572c 100644 --- a/demo-angular/package.json +++ b/demo-angular/package.json @@ -6,28 +6,28 @@ "nativescript": { "id": "org.nativescript.webworkerdemo", "tns-ios": { - "version": "next" + "version": "latest" }, "tns-android": { - "version": "next" + "version": "latest" } }, "dependencies": { - "@angular/animations": "8.0.0", - "@angular/common": "8.0.0", - "@angular/compiler": "8.0.0", - "@angular/core": "8.0.0", - "@angular/forms": "8.0.0", + "@angular/animations": "~8.0.0", + "@angular/common": "~8.0.0", + "@angular/compiler": "~8.0.0", + "@angular/core": "~8.0.0", + "@angular/forms": "~8.0.0", "@angular/http": "8.0.0-beta.10", - "@angular/platform-browser": "8.0.0", - "@angular/platform-browser-dynamic": "8.0.0", - "@angular/router": "8.0.0", - "nativescript-angular": "next", + "@angular/platform-browser": "~8.0.0", + "@angular/platform-browser-dynamic": "~8.0.0", + "@angular/router": "~8.0.0", + "nativescript-angular": "latest", "nativescript-theme-core": "~1.0.2", "reflect-metadata": "~0.1.8", "rxjs": "^6.3.3", - "tns-core-modules": "next", - "zone.js": "^0.8.4" + "tns-core-modules": "latest", + "zone.js": "^0.9.1" }, "devDependencies": { "@angular/compiler-cli": "8.0.0", @@ -45,8 +45,7 @@ "mochawesome": "~3.1.2", "nativescript-css-loader": "~0.26.0", "nativescript-dev-appium": "next", - "nativescript-dev-typescript": "next", - "nativescript-dev-webpack": "next", + "nativescript-dev-webpack": "latest", "ts-loader": "^5.3.0", "typescript": "~3.4.5" }, diff --git a/demo-angular/webpack.config.js b/demo-angular/webpack.config.js index 309ff73..e0bb0d3 100644 --- a/demo-angular/webpack.config.js +++ b/demo-angular/webpack.config.js @@ -264,7 +264,17 @@ module.exports = env => { { from: { glob: "**/*.jpg" } }, { from: { glob: "**/*.png" } }, ], { ignore: [`${relative(appPath, appResourcesFullPath)}/**`] }), - new nsWebpack.GenerateNativeScriptEntryPointsPlugin("bundle"), + // Generate a bundle starter script and activate it in package.json + new nsWebpack.GenerateBundleStarterPlugin( + // Don't include `runtime.js` when creating a snapshot. The plugin + // configures the WebPack runtime to be generated inside the snapshot + // module and no `runtime.js` module exist. + (snapshot ? [] : ["./runtime"]) + .concat([ + "./vendor", + "./bundle", + ]) + ), // For instructions on how to set up workers with webpack // check out https://github.com/nativescript/worker-loader new NativeScriptWorkerPlugin(),