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

Commit

Permalink
fix: register UI modules in NG apps (#570)
Browse files Browse the repository at this point in the history
This is required, because there may be plugins that use the
tns-core-modules builder.

fixes #561
  • Loading branch information
sis0k0 authored Jun 18, 2018
1 parent c0e4083 commit c27e0db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions bundle-config-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ module.exports = function(source) {
this.cacheable();
const { angular = false, loadCss = true } = this.query;

source = `
require("tns-core-modules/bundle-entry-points");
${source}
`;

if (!angular) {
source = `
require("nativescript-dev-webpack/register-modules");
Expand Down
1 change: 0 additions & 1 deletion register-modules.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require("tns-core-modules/bundle-entry-points");
const context = require.context("~/", true, /(root|page)\.(xml|css|js|ts|scss)$/);
global.registerWebpackModules(context);

0 comments on commit c27e0db

Please sign in to comment.