Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Commit 834322c

Browse files
committed
refactor: reexport platform host from root
1 parent 994aad5 commit 834322c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: index.js

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const {
99
} = require("./projectHelpers");
1010

1111
Object.assign(exports, require('./plugins'));
12+
Object.assign(exports, require('./host/platform'));
1213

1314
exports.getAotEntryModule = function (appDirectory) {
1415
verifyEntryModuleDirectory(appDirectory);

Diff for: templates/webpack.angular.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ const { join, relative, resolve, sep } = require("path");
33
const webpack = require("webpack");
44
const nsWebpack = require("nativescript-dev-webpack");
55
const nativescriptTarget = require("nativescript-dev-webpack/nativescript-target");
6-
const { PlatformReplacementHost } = require("nativescript-dev-webpack/host/platform");
76
const CleanWebpackPlugin = require("clean-webpack-plugin");
87
const CopyWebpackPlugin = require("copy-webpack-plugin");
98
const { BundleAnalyzerPlugin } = require("webpack-bundle-analyzer");
@@ -24,7 +23,7 @@ module.exports = env => {
2423
}
2524

2625
const extensions = ["tns", platform];
27-
const platformHost = new PlatformReplacementHost(extensions);
26+
const platformHost = new nsWebpack.PlatformReplacementHost(extensions);
2827

2928
const projectRoot = __dirname;
3029

0 commit comments

Comments
 (0)