Skip to content

Commit

Permalink
Merge pull request #25 from uihp/patch-1
Browse files Browse the repository at this point in the history
Modified the deprecated assertion syntax to attributes
  • Loading branch information
jleeson authored Sep 23, 2024
2 parents 7b40eee + d49fa7e commit ef6e7c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default (options = {}) => {

/* if modules are enabled or an import uses native css module syntax, export it as a CSSStyleSheet */
const moduleInfo = this.getModuleInfo(id);
if (options.modules || moduleInfo.assertions?.type == "css") {
if (options.modules || moduleInfo.attributes?.type == "css") {
return {
code: `const sheet = new CSSStyleSheet();sheet.replaceSync(${JSON.stringify(transformedCode)});export default sheet;`,
map: { mappings: "" }
Expand Down

0 comments on commit ef6e7c0

Please sign in to comment.