Skip to content

Commit

Permalink
test: remove old tree shaking
Browse files Browse the repository at this point in the history
  • Loading branch information
LingyuCoder committed May 15, 2024
1 parent 5e6533d commit 485223d
Show file tree
Hide file tree
Showing 135 changed files with 494 additions and 556 deletions.
1 change: 1 addition & 0 deletions packages/rspack-test-tools/src/processor/treeshaking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export class RspackTreeShakingProcessor extends SnapshotProcessor<ECompilerType.
protected _treeShakingOptions: IRspackTreeShakingProcessorOptions
) {
super({
configFiles: ["rspack.config.js", "webpack.config.js"],
snapshot: _treeShakingOptions.snapshot,
compilerType: ECompilerType.Rspack,
defaultOptions: RspackBuiltinProcessor.defaultOptions,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ module.exports = {
sideEffects: true
},
builtins: {
treeShaking: true,
define: {
"process.env.NODE_ENV": "'development'"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ module.exports = {
sideEffects: true
},
builtins: {
treeShaking: true,
define: {
"process.env.NODE_ENV": "'development'"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ module.exports = {
sideEffects: true
},
builtins: {
treeShaking: true,
define: {
"process.env.NODE_ENV": "'development'"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ module.exports = {
sideEffects: true
},
builtins: {
treeShaking: true,
define: {
"process.env.NODE_ENV": "'development'"
}
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
optimization: {
sideEffects: true
},
builtins: {
define: {
"process.env.NODE_ENV": "'development'"
}
}
};

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
optimization: {
sideEffects: true
},
builtins: {
define: {
"process.env.NODE_ENV": "'development'"
}
}
};

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
optimization: {
sideEffects: true
},
builtins: {
define: {
"process.env.NODE_ENV": "'development'"
}
}
};
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
module.exports = {
builtins: {
treeShaking: true,
define: {
"process.env.NODE_ENV": "'development'"
}
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
optimization: {
sideEffects: true
},
builtins: {
define: {
"process.env.NODE_ENV": "'development'"
}
}
};
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ module.exports = {
sideEffects: true
},
builtins: {
treeShaking: true,
define: {
"process.env.NODE_ENV": "'development'"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
module.exports = {
builtins: {
treeShaking: true,
define: {
"process.env.NODE_ENV": "'development'"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
module.exports = {
builtins: {
treeShaking: true,
define: {
"process.env.NODE_ENV": "'development'"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
module.exports = {
builtins: {
treeShaking: true,
define: {
"process.env.NODE_ENV": "'development'"
}
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
optimization: {
sideEffects: true
},
builtins: {
define: {
"process.env.NODE_ENV": "'development'"
}
}
};

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
optimization: {
sideEffects: true
},
builtins: {
define: {
"process.env.NODE_ENV": "'development'"
}
}
};
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ module.exports = {
sideEffects: true
},
builtins: {
treeShaking: true,
define: {
"process.env.NODE_ENV": "'development'"
}
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
optimization: {
sideEffects: true
},
builtins: {
define: {
"process.env.NODE_ENV": "'development'"
}
}
};

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
builtins: {
define: {
"process.env.NODE_ENV": "'development'"
}
}
};

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
builtins: {
define: {
"process.env.NODE_ENV": "'development'"
}
}
};

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
builtins: {
define: {
"process.env.NODE_ENV": "'development'"
}
}
};
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ module.exports = {
sideEffects: true
},
builtins: {
treeShaking: true,
define: {
"process.env.NODE_ENV": "'development'"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ module.exports = {
sideEffects: true
},
builtins: {
treeShaking: true,
define: {
"process.env.NODE_ENV": "'development'"
}
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
optimization: {
sideEffects: true
},
builtins: {
define: {
"process.env.NODE_ENV": "'development'"
}
}
};

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
optimization: {
sideEffects: true
},
builtins: {
define: {
"process.env.NODE_ENV": "'development'"
}
}
};
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ module.exports = {
sideEffects: true
},
builtins: {
treeShaking: true,
define: {
"process.env.NODE_ENV": "'production'"
}
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
optimization: {
sideEffects: true
},
builtins: {
define: {
"process.env.NODE_ENV": "'development'"
}
}
};
Loading

0 comments on commit 485223d

Please sign in to comment.