mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-07 11:51:35 +00:00
* Sync up RapiD and iD esbuild config scripts * Remove uglify too * Remove babel/preset-react * Just have `npm run start` start a modern build, remove `quickstart` * Better setup for modern/legacy build - much simpler babel config - separate entry points for modern and legacy (ie11/phantom) - explicitly import 'core-js' and 'regenerator-runtime' instead of using deprecated 'babel/polyfill' plugin - still need 'core-js-bundle' for the test/index.html, so Mocha/PhantomJS combo will work. * Revert "Better setup for modern/legacy build" This reverts commit 4ce17defa8a3c6f4b3a9168bcd672235bfc651be. Co-authored-by: Milos Brzakovic (E-Search) <mbrzakovic@microsoft.com>
22 lines
360 B
JSON
22 lines
360 B
JSON
{
|
|
"presets": [
|
|
[
|
|
"@babel/preset-env", {
|
|
"useBuiltIns": "entry",
|
|
"corejs": 3,
|
|
"modules": false,
|
|
"targets": {
|
|
"chrome": "58",
|
|
"ie": 11
|
|
}
|
|
}
|
|
]
|
|
],
|
|
"plugins": [
|
|
"inline-json-import",
|
|
["@babel/transform-runtime", {
|
|
"regenerator": true
|
|
}]
|
|
],
|
|
"compact": false
|
|
} |