Closed BrightX closed 1 month ago
I conducted a preliminary investigation. The npm package @arcgis/core
releases the minified js product, which causes Rspack/webpack to easily make wrong analysis during scope analysis and variable replace.
After I formatted this npm package via npx prettier --write .
, it works
Seems to be a bug of asiSafe of HarmonyImportSpecifierDependency. A minimum repro here. cc @h-a-n-a
Version
Details
yarn dev
浏览器控制台报错:Uncaught SyntaxError: Unexpected token ';'yarn build
报错:Reproduce link
https://developers.arcgis.com/javascript/latest/get-started-npm/#api
Reproduce Steps
index.html
index.js
css