Skip to content

Commit 2c397f0

Browse files
authored
chore: remove pnpm hoist pattern (#2156)
1 parent ea8aca0 commit 2c397f0

File tree

4 files changed

+15
-4
lines changed

4 files changed

+15
-4
lines changed

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
registry = 'https://registry.npmjs.org/'
22
strict-peer-dependencies=false
3+
hoist-pattern[]=[]

e2e/cases/babel/decorator/index.test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,11 @@ rspackOnlyTest(
5151
runServer: true,
5252
plugins: [
5353
pluginBabel({
54-
babelLoaderOptions(_, { addPresets }) {
54+
babelLoaderOptions(options, { addPresets }) {
55+
// CWD is set to <project>/e2e by playwright, to find @babel/preset-env
56+
// correctly, manually set it to `__dirname`, better setting CWD to project root
57+
// for each test file with something like `setupFiles` in Vitest, playwright lacks though.
58+
options.cwd = __dirname;
5559
addPresets([
5660
[
5761
'@babel/preset-env',

packages/plugin-vue/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
"@rsbuild/core": "workspace:*",
3636
"@scripts/test-helper": "workspace:*",
3737
"typescript": "^5.4.2",
38-
"webpack": "^5.91.0"
38+
"webpack": "^5.91.0",
39+
"vue": "^3.4.19"
3940
},
4041
"peerDependencies": {
4142
"@rsbuild/core": "workspace:^0.6.4"

pnpm-lock.yaml

Lines changed: 7 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)