Skip to content

Commit

Permalink
chore: revert template code
Browse files Browse the repository at this point in the history
  • Loading branch information
JiangWeixian committed Mar 21, 2024
1 parent 858d9d8 commit 032112c
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 17 deletions.
2 changes: 0 additions & 2 deletions packages/create-rspack/template-react-ts/rspack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@ module.exports = {
}
},
plugins: [
new rspack.RSCClientEntryPlugin(),
new rspack.RSCClientReferenceManifestRspackPlugin(),
new rspack.DefinePlugin({
"process.env.NODE_ENV": JSON.stringify(process.env.NODE_ENV)
}),
Expand Down
2 changes: 0 additions & 2 deletions packages/create-rspack/template-react-ts/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
import { useState } from "react";
import reactLogo from "./assets/react.svg";
import { ServerButton } from './components/button.server'
import "./App.css";

function App() {
const [count, setCount] = useState(0);

return (
<div className="App">
<ServerButton />
<div>
<a href="https://reactjs.org" target="_blank" rel="noreferrer">
<img src={reactLogo} className="logo react" alt="React logo" />
Expand Down

This file was deleted.

This file was deleted.

6 changes: 3 additions & 3 deletions packages/rspack/src/builtin-plugin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ function resolveTreeShaking(
return treeShaking !== undefined
? treeShaking.toString()
: production
? "true"
: "false";
? "true"
: "false";
}

export interface Builtins {
Expand All @@ -101,7 +101,7 @@ export function deprecated_resolveBuiltins(
...builtins.css?.modules
},
namedExports: builtins.css?.namedExports
}
}
: undefined,
treeShaking: resolveTreeShaking(builtins.treeShaking, production)
};
Expand Down

0 comments on commit 032112c

Please sign in to comment.