Skip to content

Commit

Permalink
Try placing it in side effect full sub package
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianRappl committed Dec 16, 2024
1 parent ab73051 commit c49de2a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/framework/piral-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@
},
"./app.codegen": "./app.codegen",
"./package.json": "./package.json",
"./style.css": "./style.css"
"./styles/sheet.css": "./styles/sheet.css"
},
"sideEffects": false,
"files": [
"lib",
"src",
"app.codegen",
"app.codegen.d.ts",
"style.css"
"styles"
],
"funding": {
"type": "github",
Expand Down
2 changes: 1 addition & 1 deletion src/framework/piral-core/src/tools/codegen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ interface CodegenOptions {
export function createBasicAppFunc(imports: Array<string>, exports: Array<string>, opts: CodegenOptions) {
switch (opts.internalStyles) {
case 'sheet':
imports.push(`import 'piral-core/style.css';`);
imports.push(`import 'piral-core/styles/sheet.css';`);
// no return - we fall through and also include the dummy applyStyle for "none"
case 'none':
exports.push(`
Expand Down
4 changes: 4 additions & 0 deletions src/framework/piral-core/styles/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"sideEffects": true
}

File renamed without changes.

0 comments on commit c49de2a

Please sign in to comment.