본문 바로가기

Vue

Vue Cli 3 IE polyfill 설정하기

 

1. babel 관련 npm을 install 한다.

https://www.npmjs.com/package/@babel/polyfill

 

@babel/polyfill

Provides polyfills necessary for a full ES2015+ environment

www.npmjs.com

 

2. main.js 에 import 한다.

import '@babel/polyfill'

 

3. vue.config.js 에 관련하여 추가옵션을 더한다.

const ansiRegex = require('ansi-regex')
const path = require('path')

module.exports = {
 ...
   transpileDependencies: [ansiRegex] // 추가
 }

 

 

※ 참고사이트

https://steemit.com/vue-cli3/@stepanowon/vue-cli-3-x-ie11

'Vue' 카테고리의 다른 글

[vue] ngrok 을 이용해서 외부에서 로컬로 접속하기  (0) 2022.05.17
eslint, prettier  (0) 2021.12.14
같은 라이브러리 다른버전 npm install  (0) 2021.10.05
[Vue3] Watch, WatchEffect  (0) 2021.09.06
브라우저 blob 데이터 받기  (0) 2019.10.30