Skip to content

Commit

Permalink
chore: upgrade to support for rollup@4 (#2919)
Browse files Browse the repository at this point in the history
  • Loading branch information
idoros authored Oct 25, 2023
1 parent c4943c2 commit ac253d8
Show file tree
Hide file tree
Showing 4 changed files with 165 additions and 8 deletions.
168 changes: 162 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rimraf": "^5.0.5",
"rollup": "^3.29.4",
"rollup": "^4.1.4",
"source-map": "^0.7.4",
"source-map-loader": "^4.0.1",
"style-loader": "^3.3.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/rollup-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"test": "mocha \"dist/test/**/*.spec.js\""
},
"peerDependencies": {
"rollup": "^2.70.0 || ^3.0.0"
"rollup": "^2.70.0 || ^3.0.0 || ^4.0.0"
},
"dependencies": {
"@file-services/node": "^8.3.1",
Expand Down
1 change: 1 addition & 0 deletions packages/rollup-plugin/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ export function stylableRollupPlugin({
const { isStFile, isLoadableCssFile, path } = getLoadableModuleData(id);
if (isLoadableCssFile || isStFile) {
const code = fs.readFileSync(path, 'utf8');
this.addWatchFile(path);
return { code, moduleSideEffects: isLoadableCssFile };
}
return null;
Expand Down

0 comments on commit ac253d8

Please sign in to comment.