From 50a0dc0e98f3d5c56ecd5f4c4c2bb50a188d0cee Mon Sep 17 00:00:00 2001 From: robert Date: Tue, 2 May 2023 16:51:40 +0200 Subject: [PATCH] Remove rollupReplace from examples --- examples/react/basic/vite.config.js | 13 +------------ examples/react/custom-steps/vite.config.js | 13 +------------ examples/react/custom-styles/vite.config.js | 13 +------------ .../react/logarithmic-interpolator/vite.config.js | 13 +------------ examples/react/update-on-drag/vite.config.js | 13 +------------ 5 files changed, 5 insertions(+), 60 deletions(-) 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()] })