Skip to content

Commit

Permalink
fix(deps): update dependency unplugin to v2 (#2878)
Browse files Browse the repository at this point in the history
* fix(deps): update dependency unplugin to v2

* fix: ci error

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: oasis <[email protected]>
  • Loading branch information
renovate[bot] and oasis-cloud authored Feb 18, 2025
1 parent d7b99dd commit 9ed9870
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 24 deletions.
2 changes: 1 addition & 1 deletion packages/nutui-auto-import/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
"@types/babel__traverse": "^7.20.6",
"estree-walker": "^3.0.3",
"magic-string": "^0.30.11",
"unplugin": "^1.14.1"
"unplugin": "^2.2.0"
},
"devDependencies": {
"@nutui/nutui-react": "^2.6.22",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,25 +1,10 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`rollup > basic.js 1`] = `
"// basic.js
import { Button, Cell } from '@nutui/nutui-react';
const num = 10;
console.log(Button);
console.log(Cell);
export { num };
"
`;

exports[`rollup > basic.jsx 1`] = `
"// basic.js
import '../../../../node_modules/.pnpm/@[email protected][email protected][email protected][email protected]/node_modules/@nutui/nutui-react/dist/es/packages/cell/style/css.js';
import '../../../../node_modules/.pnpm/@[email protected][email protected][email protected][email protected]/node_modules/@nutui/nutui-react/dist/es/packages/button/style/css.js';
import '../../../../node_modules/.pnpm/@[email protected][email protected][email protected][email protected]/node_modules/@nutui/nutui-react/dist/es/packages/cell/style/css.js';
import { Cell } from '@nutui/nutui-react';
// console.log(Button)
console.log(Cell);
const A = () => {
return /*#__PURE__*/React.createElement(Cell, null, "Test");
};
Expand Down
14 changes: 7 additions & 7 deletions pnpm-lock.yaml

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

0 comments on commit 9ed9870

Please sign in to comment.