We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a8a0d5 commit c1a2d54Copy full SHA for c1a2d54
packages/webpack/helpers/apply-css-loader.js
@@ -26,14 +26,14 @@ module.exports = function (content, map) {
26
}
27
28
content += `
29
- const nsCore = require("@nativescript/core");
+ const { Application } = require("@nativescript/core");
30
require("@nativescript/core/ui/styling/style-scope");
31
32
- if (typeof exports.forEach === "function") {
33
- exports.forEach(cssExport => {
+ if (___CSS_LOADER_EXPORT___ && typeof ___CSS_LOADER_EXPORT___.forEach === "function") {
+ ___CSS_LOADER_EXPORT___.forEach(cssExport => {
34
if (cssExport.length > 1 && cssExport[1]) {
35
// applying the second item of the export as it contains the css contents
36
- nsCore.Application.addCss(cssExport[1]);
+ Application.addCss(cssExport[1]);
37
38
});
39
0 commit comments