3
3
* Copyright © Bold Brand Commerce Sp. z o.o. All rights reserved.
4
4
* See LICENSE for license details.
5
5
*/
6
- import { join } from 'path ' ;
6
+ import webpack from 'webpack ' ;
7
7
import { keywords , description , version } from './package' ;
8
8
import modulesConfig from './modules.config' ;
9
9
@@ -68,6 +68,14 @@ module.exports = {
68
68
'@ergonode/vuems' ,
69
69
'@nuxtjs/router' ,
70
70
] ,
71
+ polyfill : {
72
+ features : [
73
+ {
74
+ require : 'intersection-observer' ,
75
+ detect : ( ) => 'IntersectionObserver' in window ,
76
+ } ,
77
+ ] ,
78
+ } ,
71
79
modules : [
72
80
'nuxt-i18n' ,
73
81
'@nuxtjs/style-resources' ,
@@ -79,6 +87,7 @@ module.exports = {
79
87
] ,
80
88
'cookie-universal-nuxt' ,
81
89
'@nuxtjs/axios' ,
90
+ 'nuxt-polyfill' ,
82
91
] ,
83
92
vuems : {
84
93
required : modulesConfig . required ,
@@ -112,6 +121,9 @@ module.exports = {
112
121
baseURL : 'http://localhost:8000' ,
113
122
} ,
114
123
build : {
124
+ plugins : [
125
+ new webpack . IgnorePlugin ( / ^ \. \/ l o c a l e $ / , / m o m e n t $ / ) ,
126
+ ] ,
115
127
babel : {
116
128
configFile : './babel.config.js' ,
117
129
} ,
@@ -150,10 +162,6 @@ module.exports = {
150
162
isDev,
151
163
isClient,
152
164
} ) {
153
- const alias = config . resolve . alias || { } ;
154
-
155
- alias [ '@Vendor' ] = join ( __dirname , '/vendor' ) ;
156
-
157
165
if ( isDev ) {
158
166
config . devtool = isClient ? 'source-map' : 'inline-source-map' ;
159
167
}
@@ -165,7 +173,7 @@ module.exports = {
165
173
optimization : {
166
174
splitChunks : {
167
175
chunks : 'all' ,
168
- maxSize : 200000 ,
176
+ maxSize : 249856 ,
169
177
} ,
170
178
} ,
171
179
} ,
@@ -183,7 +191,6 @@ module.exports = {
183
191
SHOW_RELEASE_INFO : process . env . SHOW_RELEASE_INFO || false ,
184
192
LEAVE_TEST_TAG_ATTRS : process . env . LEAVE_TEST_TAG_ATTRS || true ,
185
193
} ,
186
-
187
194
privateRuntimeConfig : {
188
195
axios : {
189
196
baseURL : process . env . API_BASE_URL ,
0 commit comments