File tree Expand file tree Collapse file tree 2 files changed +2
-20
lines changed Expand file tree Collapse file tree 2 files changed +2
-20
lines changed Original file line number Diff line number Diff line change 1
1
import { Middleware } from 'redux'
2
2
import thunkMiddleware from 'redux-thunk'
3
- /* START_REMOVE_UMD */
3
+ /* PROD_START_REMOVE_UMD */
4
4
import createImmutableStateInvariantMiddleware from 'redux-immutable-state-invariant'
5
- /* STOP_REMOVE_UMD */
5
+ /* PROD_STOP_REMOVE_UMD */
6
6
7
7
import {
8
8
createSerializableStateInvariantMiddleware ,
@@ -61,9 +61,6 @@ export function getDefaultMiddleware<S = any>(
61
61
if ( process . env . NODE_ENV !== 'production' ) {
62
62
if ( immutableCheck ) {
63
63
/* PROD_START_REMOVE_UMD */
64
-
65
- // UMD-ONLY: const createImmutableStateInvariantMiddleware = require('redux-immutable-state-invariant').default
66
-
67
64
let immutableOptions : ImmutableStateInvariantMiddlewareOptions = { }
68
65
69
66
if ( ! isBoolean ( immutableCheck ) ) {
@@ -73,7 +70,6 @@ export function getDefaultMiddleware<S = any>(
73
70
middlewareArray . unshift (
74
71
createImmutableStateInvariantMiddleware ( immutableOptions )
75
72
)
76
-
77
73
/* PROD_STOP_REMOVE_UMD */
78
74
}
79
75
Original file line number Diff line number Diff line change 1
1
const { join } = require ( 'path' )
2
2
3
- const replace = require ( 'rollup-plugin-replace' )
4
3
const stripCode = require ( 'rollup-plugin-strip-code' )
5
4
6
5
const pkg = require ( './package.json' )
@@ -15,19 +14,6 @@ module.exports = {
15
14
case 'umd' :
16
15
delete config . external
17
16
config . output . indent = false
18
- config . plugins . unshift (
19
- replace ( {
20
- '// UMD-ONLY: ' : '' ,
21
- delimiters : [ '' , '' ]
22
- } )
23
- )
24
- config . plugins . unshift (
25
- stripCode ( {
26
- // Remove the `import` of RISI so we use the dynamic `require()` statement
27
- start_comment : 'START_REMOVE_UMD' ,
28
- end_comment : 'STOP_REMOVE_UMD'
29
- } )
30
- )
31
17
if ( env === 'production' ) {
32
18
config . plugins . unshift (
33
19
stripCode ( {
You can’t perform that action at this time.
0 commit comments