diff --git a/examples/react/basic/vite.config.js b/examples/react/basic/vite.config.js index 6d9ac0e..b1b5f91 100644 --- a/examples/react/basic/vite.config.js +++ b/examples/react/basic/vite.config.js @@ -1,18 +1,7 @@ -import * as path from 'path' import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' -import rollupReplace from '@rollup/plugin-replace' // https://vitejs.dev/config/ export default defineConfig({ - plugins: [ - rollupReplace({ - preventAssignment: true, - values: { - __DEV__: JSON.stringify(true), - 'process.env.NODE_ENV': JSON.stringify('development'), - }, - }), - react(), - ], + plugins: [react()] }) diff --git a/examples/react/custom-steps/vite.config.js b/examples/react/custom-steps/vite.config.js index 6d9ac0e..b1b5f91 100644 --- a/examples/react/custom-steps/vite.config.js +++ b/examples/react/custom-steps/vite.config.js @@ -1,18 +1,7 @@ -import * as path from 'path' import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' -import rollupReplace from '@rollup/plugin-replace' // https://vitejs.dev/config/ export default defineConfig({ - plugins: [ - rollupReplace({ - preventAssignment: true, - values: { - __DEV__: JSON.stringify(true), - 'process.env.NODE_ENV': JSON.stringify('development'), - }, - }), - react(), - ], + plugins: [react()] }) diff --git a/examples/react/custom-styles/vite.config.js b/examples/react/custom-styles/vite.config.js index 6d9ac0e..b1b5f91 100644 --- a/examples/react/custom-styles/vite.config.js +++ b/examples/react/custom-styles/vite.config.js @@ -1,18 +1,7 @@ -import * as path from 'path' import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' -import rollupReplace from '@rollup/plugin-replace' // https://vitejs.dev/config/ export default defineConfig({ - plugins: [ - rollupReplace({ - preventAssignment: true, - values: { - __DEV__: JSON.stringify(true), - 'process.env.NODE_ENV': JSON.stringify('development'), - }, - }), - react(), - ], + plugins: [react()] }) diff --git a/examples/react/logarithmic-interpolator/vite.config.js b/examples/react/logarithmic-interpolator/vite.config.js index 6d9ac0e..b1b5f91 100644 --- a/examples/react/logarithmic-interpolator/vite.config.js +++ b/examples/react/logarithmic-interpolator/vite.config.js @@ -1,18 +1,7 @@ -import * as path from 'path' import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' -import rollupReplace from '@rollup/plugin-replace' // https://vitejs.dev/config/ export default defineConfig({ - plugins: [ - rollupReplace({ - preventAssignment: true, - values: { - __DEV__: JSON.stringify(true), - 'process.env.NODE_ENV': JSON.stringify('development'), - }, - }), - react(), - ], + plugins: [react()] }) diff --git a/examples/react/update-on-drag/vite.config.js b/examples/react/update-on-drag/vite.config.js index 6d9ac0e..b1b5f91 100644 --- a/examples/react/update-on-drag/vite.config.js +++ b/examples/react/update-on-drag/vite.config.js @@ -1,18 +1,7 @@ -import * as path from 'path' import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' -import rollupReplace from '@rollup/plugin-replace' // https://vitejs.dev/config/ export default defineConfig({ - plugins: [ - rollupReplace({ - preventAssignment: true, - values: { - __DEV__: JSON.stringify(true), - 'process.env.NODE_ENV': JSON.stringify('development'), - }, - }), - react(), - ], + plugins: [react()] })