Skip to content

Commit

Permalink
chore: πŸ€– support core-js 3 to use nuxt with vuepress
Browse files Browse the repository at this point in the history
βœ… Closes: Tokyo-Metro-Gov#4175
  • Loading branch information
shufo committed May 20, 2020
1 parent e4f176f commit bf446a4
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,19 @@ const config: Configuration = {
}
],
build: {
babel: {
presets({ isServer }) {
return [
[
require.resolve('@nuxt/babel-preset-app'),
{
buildTarget: isServer ? 'server' : 'client',
corejs: { version: 3 }
}
]
]
}
},
plugins: [
new webpack.ProvidePlugin({
mapboxgl: 'mapbox-gl'
Expand Down

0 comments on commit bf446a4

Please sign in to comment.