test: add merge tests

This commit is contained in:
Igor Randjelovic
2020-11-22 16:52:33 +01:00
parent 2f5cd2bb85
commit 9053cb6688
7 changed files with 84 additions and 75 deletions

View File

@@ -18,14 +18,14 @@ export default function loader(content, map) {
const hmrCode = this.hot
? dedent`
if(module.hot) {
module.hot.accept()
module.hot.dispose(() => {
const { removeTaggedAdditionalCSS } = require("@nativescript/core/ui/styling/style-scope");
removeTaggedAdditionalCSS(${tag})
})
}
`
if(module.hot) {
module.hot.accept()
module.hot.dispose(() => {
const { removeTaggedAdditionalCSS } = require("@nativescript/core/ui/styling/style-scope");
removeTaggedAdditionalCSS(${tag})
})
}
`
: ``;
if (hasLoader('apply-css-loader')) {