Skip to content

Commit 2136154

Browse files
authored
Remove rollupReplace from examples (#62)
1 parent 0377fa0 commit 2136154

5 files changed

Lines changed: 5 additions & 60 deletions

File tree

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,7 @@
1-
import * as path from 'path'
21
import { defineConfig } from 'vite'
32
import react from '@vitejs/plugin-react'
4-
import rollupReplace from '@rollup/plugin-replace'
53

64
// https://vitejs.dev/config/
75
export default defineConfig({
8-
plugins: [
9-
rollupReplace({
10-
preventAssignment: true,
11-
values: {
12-
__DEV__: JSON.stringify(true),
13-
'process.env.NODE_ENV': JSON.stringify('development'),
14-
},
15-
}),
16-
react(),
17-
],
6+
plugins: [react()]
187
})
Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,7 @@
1-
import * as path from 'path'
21
import { defineConfig } from 'vite'
32
import react from '@vitejs/plugin-react'
4-
import rollupReplace from '@rollup/plugin-replace'
53

64
// https://vitejs.dev/config/
75
export default defineConfig({
8-
plugins: [
9-
rollupReplace({
10-
preventAssignment: true,
11-
values: {
12-
__DEV__: JSON.stringify(true),
13-
'process.env.NODE_ENV': JSON.stringify('development'),
14-
},
15-
}),
16-
react(),
17-
],
6+
plugins: [react()]
187
})
Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,7 @@
1-
import * as path from 'path'
21
import { defineConfig } from 'vite'
32
import react from '@vitejs/plugin-react'
4-
import rollupReplace from '@rollup/plugin-replace'
53

64
// https://vitejs.dev/config/
75
export default defineConfig({
8-
plugins: [
9-
rollupReplace({
10-
preventAssignment: true,
11-
values: {
12-
__DEV__: JSON.stringify(true),
13-
'process.env.NODE_ENV': JSON.stringify('development'),
14-
},
15-
}),
16-
react(),
17-
],
6+
plugins: [react()]
187
})
Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,7 @@
1-
import * as path from 'path'
21
import { defineConfig } from 'vite'
32
import react from '@vitejs/plugin-react'
4-
import rollupReplace from '@rollup/plugin-replace'
53

64
// https://vitejs.dev/config/
75
export default defineConfig({
8-
plugins: [
9-
rollupReplace({
10-
preventAssignment: true,
11-
values: {
12-
__DEV__: JSON.stringify(true),
13-
'process.env.NODE_ENV': JSON.stringify('development'),
14-
},
15-
}),
16-
react(),
17-
],
6+
plugins: [react()]
187
})
Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,7 @@
1-
import * as path from 'path'
21
import { defineConfig } from 'vite'
32
import react from '@vitejs/plugin-react'
4-
import rollupReplace from '@rollup/plugin-replace'
53

64
// https://vitejs.dev/config/
75
export default defineConfig({
8-
plugins: [
9-
rollupReplace({
10-
preventAssignment: true,
11-
values: {
12-
__DEV__: JSON.stringify(true),
13-
'process.env.NODE_ENV': JSON.stringify('development'),
14-
},
15-
}),
16-
react(),
17-
],
6+
plugins: [react()]
187
})

0 commit comments

Comments
 (0)