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

fix: register UI modules in NG apps #570

Merged
merged 1 commit into from
Jun 18, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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);