Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid O'Regan <doregan@gitlab.com>2020-10-01 11:10:13 +0300
committerAchilleas Pipinellis <axil@gitlab.com>2020-10-01 11:10:13 +0300
commit7faa5a3ce604506b747840b6194e392bb054f0cd (patch)
treea8ee1799b8931c20f81f05770a7b48333e930f1c /rollup.config.js
parent1f2e0dd8edeb1789c85f4bc9347644e9bf3843ec (diff)
Handle yarn instant search build and reduce bundle size
Diffstat (limited to 'rollup.config.js')
-rw-r--r--rollup.config.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/rollup.config.js b/rollup.config.js
index 86b017e5..42664a31 100644
--- a/rollup.config.js
+++ b/rollup.config.js
@@ -20,10 +20,12 @@ module.exports = glob.sync('content/frontend/**/*.js').map(file => ({
name: file,
},
plugins: [
- nodeResolve(),
- nodePolyfills(),
+ nodeResolve({ browser: true, preferBuiltins: true }),
commonjs(),
- babel(),
+ nodePolyfills(),
+ babel({
+ exclude: 'node_modules/**',
+ }),
json(),
vue(),
importResolver({