Skip to content

Commit 5e7d2a1

Browse files
committed
Remove rollup-plugin-inject-process-env as it adds code without minification.
Read more: badcafe/rollup-plugin-inject-process-env#13
1 parent e0a1d87 commit 5e7d2a1

File tree

3 files changed

+1
-15
lines changed

3 files changed

+1
-15
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
"prettier": "^2.1.2",
3636
"raw-loader": "^4.0.2",
3737
"rollup": "^2.3.4",
38-
"rollup-plugin-inject-process-env": "^1.3.0",
3938
"rollup-plugin-livereload": "^2.0.0",
4039
"rollup-plugin-svelte": "^6.0.0",
4140
"rollup-plugin-svg-import": "^1.5.1",

scripts/build.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
const svelte = require('rollup-plugin-svelte')
22
const sveltePreprocess = require('svelte-preprocess')
33
const { babel } = require('@rollup/plugin-babel')
4-
const injectProcessEnv = require('rollup-plugin-inject-process-env')
54
const { nodeResolve } = require('@rollup/plugin-node-resolve')
65
const commonjs = require('@rollup/plugin-commonjs')
76
const json = require('@rollup/plugin-json')
@@ -114,11 +113,6 @@ async function buildWebComponent({ nestedCSS, minify }) {
114113

115114
...commonRollupPlugins,
116115

117-
// replaces the process.env references from the transpiled code
118-
injectProcessEnv({
119-
NODE_ENV: process.env.NODE_ENV,
120-
}),
121-
122116
// Watch the `public` directory and refresh the
123117
// browser on changes when not in production
124118
!production && livereload(buildPath),

yarn.lock

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7571,7 +7571,7 @@ lru-cache@^6.0.0:
75717571
dependencies:
75727572
yallist "^4.0.0"
75737573

7574-
magic-string@^0.25.2, magic-string@^0.25.5, magic-string@^0.25.7:
7574+
magic-string@^0.25.2, magic-string@^0.25.5:
75757575
version "0.25.7"
75767576
resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.25.7.tgz#3f497d6fd34c669c6798dcb821f2ef31f5445051"
75777577
integrity sha512-4CrMT5DOHTDk4HYDlzmwu4FVCcIYI8gauveasrdCu2IKIFOJ3f0v/8MDGJCDL9oD2ppz/Av1b0Nj345H9M+XIA==
@@ -9681,13 +9681,6 @@ ripemd160@^2.0.0, ripemd160@^2.0.1:
96819681
hash-base "^3.0.0"
96829682
inherits "^2.0.1"
96839683

9684-
rollup-plugin-inject-process-env@^1.3.0:
9685-
version "1.3.0"
9686-
resolved "https://registry.yarnpkg.com/rollup-plugin-inject-process-env/-/rollup-plugin-inject-process-env-1.3.0.tgz#eb746fbbf0a571174707010c0cf62eb292c89dc4"
9687-
integrity sha512-LYuOvcnLZErqK1WaDGMT5ECn1JPvOgeURfQGR9tRRyMb/sqmt5G7jT2/KSChRkyEDNKsn24J4FBxubB8bbs2Fg==
9688-
dependencies:
9689-
magic-string "^0.25.7"
9690-
96919684
rollup-plugin-livereload@^2.0.0:
96929685
version "2.0.0"
96939686
resolved "https://registry.yarnpkg.com/rollup-plugin-livereload/-/rollup-plugin-livereload-2.0.0.tgz#d3928d74e8cf2ae4286c5dd46b770fd3f3b82313"

0 commit comments

Comments
 (0)