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

Commit c27e0db

Browse files
authored
fix: register UI modules in NG apps (#570)
This is required, because there may be plugins that use the tns-core-modules builder. fixes #561
1 parent c0e4083 commit c27e0db

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Diff for: bundle-config-loader.js

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ module.exports = function(source) {
22
this.cacheable();
33
const { angular = false, loadCss = true } = this.query;
44

5+
source = `
6+
require("tns-core-modules/bundle-entry-points");
7+
${source}
8+
`;
9+
510
if (!angular) {
611
source = `
712
require("nativescript-dev-webpack/register-modules");

Diff for: register-modules.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
require("tns-core-modules/bundle-entry-points");
21
const context = require.context("~/", true, /(root|page)\.(xml|css|js|ts|scss)$/);
32
global.registerWebpackModules(context);
43

0 commit comments

Comments
 (0)