mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 04:41:36 +08:00
chore: cleanup loaders
This commit is contained in:

committed by
Nathan Walker

parent
1481661557
commit
a7bd622b60
@ -28,7 +28,7 @@ export default function loader(content, map) {
|
||||
`
|
||||
: ``;
|
||||
|
||||
if (hasLoader('apply-css-loader')) {
|
||||
if (hasLoader('css2json-loader')) {
|
||||
content = dedent`
|
||||
${content}
|
||||
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.callback(null, content, map);
|
||||
this.callback(null, content, null);
|
||||
}
|
||||
|
@ -36,7 +36,7 @@ export default function loader(content: string, map: any) {
|
||||
this.callback(
|
||||
null,
|
||||
code, //`${dependencies.join('\n')}module.exports = ${str};`,
|
||||
null
|
||||
map
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user