Answer the question
In order to leave comments, you need to log in
VUE JS 3. How to transpile chunk-vendors to ES5?
vue 3 + typescript project.
An error occurs in the webOS emulator:
Uncaught SyntaxError: Use of const in strict mode.
As I understand it, the runtime (browser) does not support ES6+ syntax.
The error occurs in the chunk-vendors file, but in some dependencies the ES6+ code.
tsconfig piece:
{
"compilerOptions": {
"target": "es5",
"module": "es2020",
"strict": true,
"jsx": "preserve",
"importHelpers": true,
"moduleResolution": "node",
"experimentalDecorators": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"sourceMap": true,
"baseUrl": ".",
"types": [
"webpack-env"
],
"paths": {
"@/*": [
"src/*"
]
},
"lib": [
"esnext",
"dom",
"dom.iterable",
"scripthost"
]
},
module.exports = {
transpileDependencies: [зависимости]
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question