chore: cleanup loaders

This commit is contained in:
Igor Randjelovic
2021-03-02 22:01:29 +01:00
committed by Nathan Walker
parent 1481661557
commit a7bd622b60
2 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@ export default function loader(content, map) {
` `
: ``; : ``;
if (hasLoader('apply-css-loader')) { if (hasLoader('css2json-loader')) {
content = dedent` content = dedent`
${content} ${content}
const { addTaggedAdditionalCSS } = require("@nativescript/core/ui/styling/style-scope"); const { addTaggedAdditionalCSS } = require("@nativescript/core/ui/styling/style-scope");
@ -53,5 +53,5 @@ export default function loader(content, map) {
this.emitWarning(new Error(cssLoaderWarning)); this.emitWarning(new Error(cssLoaderWarning));
} }
this.callback(null, content, map); this.callback(null, content, null);
} }

View File

@ -36,7 +36,7 @@ export default function loader(content: string, map: any) {
this.callback( this.callback(
null, null,
code, //`${dependencies.join('\n')}module.exports = ${str};`, code, //`${dependencies.join('\n')}module.exports = ${str};`,
null map
); );
} }