Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
Rocket.Chat.Fuselage
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
RocketChat
Rocket.Chat.Fuselage
Commits
62bf728d
Unverified
Commit
62bf728d
authored
Nov 13, 2020
by
Tasso Evangelista
Committed by
GitHub
Nov 13, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: Set a conservative output.environment on Webpack bundles (#330)
parent
aa9eb3be
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
38 additions
and
89 deletions
+38
-89
packages/fuselage-ui-kit/webpack.config.js
packages/fuselage-ui-kit/webpack.config.js
+11
-6
packages/fuselage/webpack.config.js
packages/fuselage/webpack.config.js
+10
-1
packages/ui-kit/.eslintignore
packages/ui-kit/.eslintignore
+1
-0
packages/ui-kit/webpack.config.js
packages/ui-kit/webpack.config.js
+9
-0
yarn.lock
yarn.lock
+7
-82
No files found.
packages/fuselage-ui-kit/webpack.config.js
View file @
62bf728d
...
...
@@ -12,11 +12,20 @@ module.exports = (env, { mode = 'production' }) => ({
'
fuselage-ui-kit
'
:
path
.
resolve
(
__dirname
,
'
src/index.js
'
),
},
output
:
{
filename
:
`[name].
${
mode
}
.js`
,
filename
:
`[name].
${
mode
}
.js`
,
path
:
path
.
resolve
(
__dirname
,
'
dist
'
),
library
:
'
RocketChatFuselageUiKit
'
,
libraryTarget
:
'
umd
'
,
umdNamedDefine
:
true
,
environment
:
{
arrowFunction
:
false
,
bigIntLiteral
:
false
,
const
:
false
,
destructuring
:
false
,
dynamicImport
:
false
,
forOf
:
false
,
module
:
false
,
},
},
devtool
:
mode
===
'
production
'
?
false
:
'
source-map
'
,
module
:
{
...
...
@@ -28,11 +37,7 @@ module.exports = (env, { mode = 'production' }) => ({
},
],
},
externals
:
[
'
react
'
,
'
react-dom
'
,
/^@rocket.chat
\/
/
,
],
externals
:
[
'
react
'
,
'
react-dom
'
,
/^@rocket.chat
\/
/
],
plugins
:
[
new
webpack
.
DefinePlugin
({
'
process.env.VERSION
'
:
JSON
.
stringify
(
pkg
.
version
),
...
...
packages/fuselage/webpack.config.js
View file @
62bf728d
...
...
@@ -9,11 +9,20 @@ module.exports = (env, { mode = 'production' }) => ({
fuselage
:
path
.
resolve
(
__dirname
,
'
src/index.js
'
),
},
output
:
{
filename
:
`[name].
${
mode
}
.js`
,
filename
:
`[name].
${
mode
}
.js`
,
path
:
path
.
resolve
(
__dirname
,
'
dist
'
),
library
:
'
RocketChatFuselage
'
,
libraryTarget
:
'
umd
'
,
umdNamedDefine
:
true
,
environment
:
{
arrowFunction
:
false
,
bigIntLiteral
:
false
,
const
:
false
,
destructuring
:
false
,
dynamicImport
:
false
,
forOf
:
false
,
module
:
false
,
},
},
devtool
:
mode
===
'
production
'
?
false
:
'
source-map
'
,
module
:
{
...
...
packages/ui-kit/.eslintignore
View file @
62bf728d
/node_modules
/dist
!/.eslintrc.js
/webpack.config.js
packages/ui-kit/webpack.config.js
View file @
62bf728d
...
...
@@ -16,6 +16,15 @@ module.exports = (env, argv) => ({
library
:
'
RocketChatUiKit
'
,
libraryTarget
:
'
umd
'
,
umdNamedDefine
:
true
,
environment
:
{
arrowFunction
:
false
,
bigIntLiteral
:
false
,
const
:
false
,
destructuring
:
false
,
dynamicImport
:
false
,
forOf
:
false
,
module
:
false
,
},
},
resolve
:
{
extensions
:
[
'
.ts
'
,
'
.tsx
'
,
'
.js
'
],
...
...
yarn.lock
View file @
62bf728d
...
...
@@ -1426,38 +1426,6 @@
minimatch "^3.0.4"
strip-json-comments "^3.1.1"
"@eslint/eslintrc@^0.2.1":
version "0.2.1"
resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-0.2.1.tgz#f72069c330461a06684d119384435e12a5d76e3c"
integrity sha512-XRUeBZ5zBWLYgSANMpThFddrZZkEbGHgUdt5UJjZfnlN9BGCiUBrf+nvbRupSjMvqzwnQN0qwCmOxITt1cfywA==
dependencies:
ajv "^6.12.4"
debug "^4.1.1"
espree "^7.3.0"
globals "^12.1.0"
ignore "^4.0.6"
import-fresh "^3.2.1"
js-yaml "^3.13.1"
lodash "^4.17.19"
minimatch "^3.0.4"
strip-json-comments "^3.1.1"
"@eslint/eslintrc@^0.2.1":
version "0.2.1"
resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-0.2.1.tgz#f72069c330461a06684d119384435e12a5d76e3c"
integrity sha512-XRUeBZ5zBWLYgSANMpThFddrZZkEbGHgUdt5UJjZfnlN9BGCiUBrf+nvbRupSjMvqzwnQN0qwCmOxITt1cfywA==
dependencies:
ajv "^6.12.4"
debug "^4.1.1"
espree "^7.3.0"
globals "^12.1.0"
ignore "^4.0.6"
import-fresh "^3.2.1"
js-yaml "^3.13.1"
lodash "^4.17.19"
minimatch "^3.0.4"
strip-json-comments "^3.1.1"
"@evocateur/libnpmaccess@^3.1.2":
version "3.1.2"
resolved "https://registry.yarnpkg.com/@evocateur/libnpmaccess/-/libnpmaccess-3.1.2.tgz#ecf7f6ce6b004e9f942b098d92200be4a4b1c845"
...
...
@@ -8417,49 +8385,6 @@ eslint@^7.13.0:
text-table "^0.2.0"
v8-compile-cache "^2.0.3"
eslint@^7.13.0:
version "7.13.0"
resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.13.0.tgz#7f180126c0dcdef327bfb54b211d7802decc08da"
integrity sha512-uCORMuOO8tUzJmsdRtrvcGq5qposf7Rw0LwkTJkoDbOycVQtQjmnhZSuLQnozLE4TmAzlMVV45eCHmQ1OpDKUQ==
dependencies:
"@babel/code-frame" "^7.0.0"
"@eslint/eslintrc" "^0.2.1"
ajv "^6.10.0"
chalk "^4.0.0"
cross-spawn "^7.0.2"
debug "^4.0.1"
doctrine "^3.0.0"
enquirer "^2.3.5"
eslint-scope "^5.1.1"
eslint-utils "^2.1.0"
eslint-visitor-keys "^2.0.0"
espree "^7.3.0"
esquery "^1.2.0"
esutils "^2.0.2"
file-entry-cache "^5.0.1"
functional-red-black-tree "^1.0.1"
glob-parent "^5.0.0"
globals "^12.1.0"
ignore "^4.0.6"
import-fresh "^3.0.0"
imurmurhash "^0.1.4"
is-glob "^4.0.0"
js-yaml "^3.13.1"
json-stable-stringify-without-jsonify "^1.0.1"
levn "^0.4.1"
lodash "^4.17.19"
minimatch "^3.0.4"
natural-compare "^1.4.0"
optionator "^0.9.1"
progress "^2.0.0"
regexpp "^3.1.0"
semver "^7.2.1"
strip-ansi "^6.0.0"
strip-json-comments "^3.1.0"
table "^5.2.3"
text-table "^0.2.0"
v8-compile-cache "^2.0.3"
espree@^7.2.0, espree@^7.3.0:
version "7.3.0"
resolved "https://registry.yarnpkg.com/espree/-/espree-7.3.0.tgz#dc30437cf67947cf576121ebd780f15eeac72348"
...
...
@@ -14656,11 +14581,6 @@ prelude-ls@~1.1.2:
resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54"
integrity sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=
prepend-http@^1.0.0:
version "1.0.4"
resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-1.0.4.tgz#d4f4562b0ce3696e41ac52d0e002e57a635dc6dc"
integrity sha1-1PRWKwzjaW5BrFLQ4ALlemNdxtw=
prettier-linter-helpers@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz#d23d41fe1375646de2d0104d3454a3008802cf7b"
...
...
@@ -14668,11 +14588,16 @@ prettier-linter-helpers@^1.0.0:
dependencies:
fast-diff "^1.1.2"
prettier@^2.1.2:
prettier@
2.1.2, prettier@
^2.1.2:
version "2.1.2"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.1.2.tgz#3050700dae2e4c8b67c4c3f666cdb8af405e1ce5"
integrity sha512-16c7K+x4qVlJg9rEbXl7HEGmQyZlG4R9AgP+oHKRMsMsuk8s+ATStlf1NpDqyBI1HpVyfjLOeMhH2LvuNvV5Vg==
prettier@~2.0.5:
version "2.0.5"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.0.5.tgz#d6d56282455243f2f92cc1716692c08aa31522d4"
integrity sha512-7PtVymN48hGcO4fGjybyBSIWDsLU4H4XlvOHfq91pz9kkGlonzwTfYkaIEwiRg/dAJF9YlbsduBAgtYLi+8cFg==
pretty-bytes@^3.0.0:
version "3.0.1"
resolved "https://registry.yarnpkg.com/pretty-bytes/-/pretty-bytes-3.0.1.tgz#27d0008d778063a0b4811bb35c79f1bd5d5fbccf"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment