From 7d79db880d1ab4a92ba9e81ce2a1b0db8d58fb7d Mon Sep 17 00:00:00 2001 From: Monica Date: Wed, 21 Aug 2024 13:30:30 +1000 Subject: [PATCH] Remove esbuild optimiser (#20) --- packages/core/integration-tests/package.json | 1 + packages/examples/eslint-example/package.json | 26 -- .../{eslint-example => eslint}/.atlaspackrc | 0 .../{eslint-example => eslint}/.eslintrc | 0 packages/examples/eslint/package.json | 14 + .../{eslint-example => eslint}/src/index.js | 0 packages/examples/html/package.json | 9 +- packages/examples/html/src/index.html | 8 +- .../examples/internalize-example/async.js | 4 - .../internalize-example/index-other.js | 2 - .../internalize-example/index-sync.js | 1 - .../examples/internalize-example/index.html | 1 - .../examples/internalize-example/index.js | 6 - .../examples/internalize-example/package.json | 6 - packages/examples/kitchen-sink/legacy.html | 24 -- packages/examples/kitchen-sink/modern.html | 24 -- packages/examples/kitchen-sink/package.json | 22 +- packages/examples/kitchen-sink/src/async.js | 6 +- packages/examples/kitchen-sink/src/index.html | 8 +- packages/examples/kitchen-sink/src/index.js | 13 +- packages/examples/kitchen-sink/src/worker.js | 1 + packages/examples/react-hmr/package.json | 20 +- packages/examples/react-hmr/src/index.html | 8 +- packages/examples/react-refresh/package.json | 6 +- packages/examples/simple/.atlaspackrc | 3 - packages/examples/simple/package.json | 23 +- packages/examples/three/.atlaspackrc | 6 - packages/examples/three/.gitignore | 2 - packages/examples/three/Makefile | 9 - packages/examples/three/package.json | 35 --- packages/examples/ts-example/package.json | 22 -- .../ts-typecheck-example/package.json | 25 -- .../.atlaspackrc | 0 packages/examples/typechecking/package.json | 14 + .../src/index.ts | 0 .../tsconfig.json | 0 packages/examples/typescript/package.json | 15 ++ .../{ts-example => typescript}/src/index.ts | 8 +- .../src/other.ts => typescript/src/main.ts} | 3 +- .../tsconfig.json | 0 packages/optimizers/esbuild/package.json | 26 -- .../esbuild/src/ESBuildOptimizer.js | 56 ---- yarn.lock | 254 ++++++++++-------- 43 files changed, 233 insertions(+), 478 deletions(-) delete mode 100644 packages/examples/eslint-example/package.json rename packages/examples/{eslint-example => eslint}/.atlaspackrc (100%) rename packages/examples/{eslint-example => eslint}/.eslintrc (100%) create mode 100644 packages/examples/eslint/package.json rename packages/examples/{eslint-example => eslint}/src/index.js (100%) delete mode 100644 packages/examples/internalize-example/async.js delete mode 100644 packages/examples/internalize-example/index-other.js delete mode 100644 packages/examples/internalize-example/index-sync.js delete mode 100644 packages/examples/internalize-example/index.html delete mode 100644 packages/examples/internalize-example/index.js delete mode 100644 packages/examples/internalize-example/package.json delete mode 100644 packages/examples/kitchen-sink/legacy.html delete mode 100644 packages/examples/kitchen-sink/modern.html delete mode 100644 packages/examples/simple/.atlaspackrc delete mode 100644 packages/examples/three/.atlaspackrc delete mode 100644 packages/examples/three/.gitignore delete mode 100644 packages/examples/three/Makefile delete mode 100644 packages/examples/three/package.json delete mode 100644 packages/examples/ts-example/package.json delete mode 100644 packages/examples/ts-typecheck-example/package.json rename packages/examples/{ts-typecheck-example => typechecking}/.atlaspackrc (100%) create mode 100644 packages/examples/typechecking/package.json rename packages/examples/{ts-typecheck-example => typechecking}/src/index.ts (100%) rename packages/examples/{ts-example => typechecking}/tsconfig.json (100%) create mode 100644 packages/examples/typescript/package.json rename packages/examples/{ts-example => typescript}/src/index.ts (56%) rename packages/examples/{ts-example/src/other.ts => typescript/src/main.ts} (78%) rename packages/examples/{ts-typecheck-example => typescript}/tsconfig.json (100%) delete mode 100644 packages/optimizers/esbuild/package.json delete mode 100644 packages/optimizers/esbuild/src/ESBuildOptimizer.js diff --git a/packages/core/integration-tests/package.json b/packages/core/integration-tests/package.json index df6911bb0..719b2cf77 100644 --- a/packages/core/integration-tests/package.json +++ b/packages/core/integration-tests/package.json @@ -28,6 +28,7 @@ "command-exists": "^1.2.6", "core-js": "^3.2.1", "cross-env": "^7.0.0", + "esbuild": "^0.23.1", "esbuild-register": "^3.5.0", "exif-reader": "^1.0.3", "get-port": "^5.0.0", diff --git a/packages/examples/eslint-example/package.json b/packages/examples/eslint-example/package.json deleted file mode 100644 index c40a77053..000000000 --- a/packages/examples/eslint-example/package.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "name": "@atlaspack/eslint-example", - "version": "2.12.0", - "license": "MIT", - "private": true, - "scripts": { - "demo": "atlaspack build src/index.js --no-cache" - }, - "browser": "dist/legacy/index.js", - "targets": { - "browser": { - "engines": { - "browsers": [ - "> 0.25%" - ] - } - } - }, - "devDependencies": { - "@babel/core": "^7.22.11", - "@atlaspack/babel-register": "2.12.0", - "@atlaspack/cli": "2.12.0", - "@atlaspack/core": "2.12.0", - "@atlaspack/validator-eslint": "2.12.0" - } -} diff --git a/packages/examples/eslint-example/.atlaspackrc b/packages/examples/eslint/.atlaspackrc similarity index 100% rename from packages/examples/eslint-example/.atlaspackrc rename to packages/examples/eslint/.atlaspackrc diff --git a/packages/examples/eslint-example/.eslintrc b/packages/examples/eslint/.eslintrc similarity index 100% rename from packages/examples/eslint-example/.eslintrc rename to packages/examples/eslint/.eslintrc diff --git a/packages/examples/eslint/package.json b/packages/examples/eslint/package.json new file mode 100644 index 000000000..0e3b45120 --- /dev/null +++ b/packages/examples/eslint/package.json @@ -0,0 +1,14 @@ +{ + "name": "@atlaspack/eslint-example", + "version": "2.12.0", + "license": "MIT", + "private": true, + "scripts": { + "build": "atlaspack build src/index.js" + }, + "devDependencies": { + "@atlaspack/cli": "^2.12.0", + "@atlaspack/config-default": "^2.12.0", + "@atlaspack/validator-eslint": "^2.12.0" + } +} diff --git a/packages/examples/eslint-example/src/index.js b/packages/examples/eslint/src/index.js similarity index 100% rename from packages/examples/eslint-example/src/index.js rename to packages/examples/eslint/src/index.js diff --git a/packages/examples/html/package.json b/packages/examples/html/package.json index f8487d8a3..01378c4d6 100644 --- a/packages/examples/html/package.json +++ b/packages/examples/html/package.json @@ -4,16 +4,9 @@ "license": "MIT", "private": true, "scripts": { - "demo": "atlaspack build src/index.html" + "start": "atlaspack src/index.html --open" }, - "browserslist": [ - "last 2 versions", - "not edge < 76", - "not firefox < 67" - ], "devDependencies": { - "@babel/core": "^7.22.11", - "@atlaspack/babel-register": "2.12.0", "@atlaspack/cli": "2.12.0" }, "dependencies": { diff --git a/packages/examples/html/src/index.html b/packages/examples/html/src/index.html index e2dae04f6..008deeb97 100644 --- a/packages/examples/html/src/index.html +++ b/packages/examples/html/src/index.html @@ -1,9 +1,9 @@ - - + + - HTML Example - + Atlaspack | HTML Example +

Hello world

diff --git a/packages/examples/internalize-example/async.js b/packages/examples/internalize-example/async.js deleted file mode 100644 index f031c60e9..000000000 --- a/packages/examples/internalize-example/async.js +++ /dev/null @@ -1,4 +0,0 @@ -import v from './index-sync'; - -// internalized, different bundle -import('./index-sync').then(v => console.log('async', v.default)); diff --git a/packages/examples/internalize-example/index-other.js b/packages/examples/internalize-example/index-other.js deleted file mode 100644 index c2c20979e..000000000 --- a/packages/examples/internalize-example/index-other.js +++ /dev/null @@ -1,2 +0,0 @@ -// internalized, same bundle -import('./index-sync').then(v => console.log('other', v)); diff --git a/packages/examples/internalize-example/index-sync.js b/packages/examples/internalize-example/index-sync.js deleted file mode 100644 index 05e087120..000000000 --- a/packages/examples/internalize-example/index-sync.js +++ /dev/null @@ -1 +0,0 @@ -export default 123; diff --git a/packages/examples/internalize-example/index.html b/packages/examples/internalize-example/index.html deleted file mode 100644 index 5b1eef451..000000000 --- a/packages/examples/internalize-example/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/packages/examples/internalize-example/index.js b/packages/examples/internalize-example/index.js deleted file mode 100644 index 338458db8..000000000 --- a/packages/examples/internalize-example/index.js +++ /dev/null @@ -1,6 +0,0 @@ -import v from './index-sync'; -import './index-other'; - -console.log(1, v); - -import('./async.js'); diff --git a/packages/examples/internalize-example/package.json b/packages/examples/internalize-example/package.json deleted file mode 100644 index 599bf4002..000000000 --- a/packages/examples/internalize-example/package.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "internalize-example", - "version": "2.12.0", - "license": "MIT", - "private": true -} diff --git a/packages/examples/kitchen-sink/legacy.html b/packages/examples/kitchen-sink/legacy.html deleted file mode 100644 index 0c33640a9..000000000 --- a/packages/examples/kitchen-sink/legacy.html +++ /dev/null @@ -1,24 +0,0 @@ - - - - - Legacy Simple Example - - - - -

I am an H1

-

- Lorem ipsum dolor sit amet consectetur adipisicing elit. Minima saepe eos - nihil recusandae, tempora id! Nostrum quia aliquid culpa nemo - consequuntur, eos dolore? Sit earum voluptatem ab aliquid iure - exercitationem? -

-

I am an H2

-

- Lorem ipsum dolor sit amet consectetur adipisicing elit. Omnis repudiandae - placeat ullam ab, explicabo non similique, voluptate culpa, illo facilis - ea? Quia perspiciatis esse earum eaque explicabo reiciendis ratione quasi. -

- - diff --git a/packages/examples/kitchen-sink/modern.html b/packages/examples/kitchen-sink/modern.html deleted file mode 100644 index ad16f5b7d..000000000 --- a/packages/examples/kitchen-sink/modern.html +++ /dev/null @@ -1,24 +0,0 @@ - - - - - Modern Simple Example - - - - -

I am an H1

-

- Lorem ipsum dolor sit amet consectetur adipisicing elit. Minima saepe eos - nihil recusandae, tempora id! Nostrum quia aliquid culpa nemo - consequuntur, eos dolore? Sit earum voluptatem ab aliquid iure - exercitationem? -

-

I am an H2

-

- Lorem ipsum dolor sit amet consectetur adipisicing elit. Omnis repudiandae - placeat ullam ab, explicabo non similique, voluptate culpa, illo facilis - ea? Quia perspiciatis esse earum eaque explicabo reiciendis ratione quasi. -

- - diff --git a/packages/examples/kitchen-sink/package.json b/packages/examples/kitchen-sink/package.json index 865448061..bce63bbbe 100644 --- a/packages/examples/kitchen-sink/package.json +++ b/packages/examples/kitchen-sink/package.json @@ -4,17 +4,16 @@ "license": "MIT", "private": true, "scripts": { - "serve": "atlaspack serve src/index.html --https --open", - "build": "rm -rf dist && atlaspack build src/index.html --no-cache" + "start": "atlaspack src/index.html --https --open" + }, + "dependencies": { + "@swc/helpers": "^0.5.0", + "lodash": "^4.17.11", + "react": "^17.0.2", + "react-dom": "^17.0.2" }, "devDependencies": { - "@babel/core": "^7.22.11", - "@atlaspack/babel-register": "2.12.0", - "@atlaspack/cli": "2.12.0", - "@atlaspack/config-default": "2.12.0", - "@atlaspack/core": "2.12.0", - "@atlaspack/optimizer-esbuild": "2.12.0", - "@atlaspack/reporter-sourcemap-visualiser": "2.12.0" + "@atlaspack/cli": "^2.12.0" }, "targets": { "browserModern": { @@ -33,10 +32,5 @@ ] } } - }, - "dependencies": { - "lodash": "^4.17.11", - "react": "^17.0.2", - "react-dom": "^17.0.2" } } diff --git a/packages/examples/kitchen-sink/src/async.js b/packages/examples/kitchen-sink/src/async.js index 52c8c0101..103d7422f 100644 --- a/packages/examples/kitchen-sink/src/async.js +++ b/packages/examples/kitchen-sink/src/async.js @@ -1,6 +1,8 @@ -require('./paragraphs.css'); +import './paragraphs.css'; -console.log(require('react')); +import React from 'react'; + +console.log('react', React); require('lodash'); class Foo {} diff --git a/packages/examples/kitchen-sink/src/index.html b/packages/examples/kitchen-sink/src/index.html index 81591ac4d..49037b73c 100644 --- a/packages/examples/kitchen-sink/src/index.html +++ b/packages/examples/kitchen-sink/src/index.html @@ -1,10 +1,10 @@ - - + + - Modern Simple Example + Atlaspack | Kitchen Sink Example - +

I am an H1

diff --git a/packages/examples/kitchen-sink/src/index.js b/packages/examples/kitchen-sink/src/index.js index 7c580e845..1b965a060 100644 --- a/packages/examples/kitchen-sink/src/index.js +++ b/packages/examples/kitchen-sink/src/index.js @@ -1,18 +1,15 @@ -import styles from './styles.css'; import atlaspack from 'url:./atlaspack.webp'; import {message} from './message'; import('./async'); import('./async2'); -new Worker(new URL('worker.js', import.meta.url)); +new Worker(new URL('worker.js', import.meta.url), {type: 'module'}); console.log(message); -// const message = require('./message'); -// const fs = require('fs'); +let icon = document.createElement('img'); +icon.src = atlaspack; +icon.width = 100; -// console.log(message); -// console.log(fs.readFileSync(__dirname + '/test.txt', 'utf8')); - -// class Test {} +document.body.prepend(icon); diff --git a/packages/examples/kitchen-sink/src/worker.js b/packages/examples/kitchen-sink/src/worker.js index ea4235ad8..4531ec8ec 100644 --- a/packages/examples/kitchen-sink/src/worker.js +++ b/packages/examples/kitchen-sink/src/worker.js @@ -1,2 +1,3 @@ const textUrl = require('url:./test.txt'); + console.log('logged from worker.js', textUrl); diff --git a/packages/examples/react-hmr/package.json b/packages/examples/react-hmr/package.json index 2b32f57ec..8c8f128f5 100644 --- a/packages/examples/react-hmr/package.json +++ b/packages/examples/react-hmr/package.json @@ -4,26 +4,10 @@ "license": "MIT", "private": true, "scripts": { - "demo": "atlaspack serve src/index.html --no-cache --https" + "start": "atlaspack src/index.html --https --open" }, "devDependencies": { - "@atlaspack/cli": "2.12.0" - }, - "targets": { - "browserModern": { - "engines": { - "browsers": [ - "last 1 Chrome version" - ] - } - }, - "browser": { - "engines": { - "browsers": [ - "> 0.25%" - ] - } - } + "@atlaspack/cli": "^2.12.0" }, "dependencies": { "react": "^17.0.2", diff --git a/packages/examples/react-hmr/src/index.html b/packages/examples/react-hmr/src/index.html index e9d5ef28f..654ce9d80 100644 --- a/packages/examples/react-hmr/src/index.html +++ b/packages/examples/react-hmr/src/index.html @@ -1,14 +1,12 @@ - + - + - Atlaspack | React Example
- - + diff --git a/packages/examples/react-refresh/package.json b/packages/examples/react-refresh/package.json index c762a8f21..23d4287a8 100644 --- a/packages/examples/react-refresh/package.json +++ b/packages/examples/react-refresh/package.json @@ -4,12 +4,10 @@ "license": "MIT", "private": true, "scripts": { - "start": "atlaspack src/index.html" + "start": "atlaspack src/index.html --open" }, "devDependencies": { - "@babel/core": "^7.22.11", - "@atlaspack/babel-register": "2.12.0", - "@atlaspack/core": "2.12.0" + "@atlaspack/cli": "^2.12.0" }, "dependencies": { "react": "^17.0.2", diff --git a/packages/examples/simple/.atlaspackrc b/packages/examples/simple/.atlaspackrc deleted file mode 100644 index 5b4f862f3..000000000 --- a/packages/examples/simple/.atlaspackrc +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@atlaspack/config-default" -} diff --git a/packages/examples/simple/package.json b/packages/examples/simple/package.json index 41863a345..e01ad170a 100644 --- a/packages/examples/simple/package.json +++ b/packages/examples/simple/package.json @@ -4,28 +4,9 @@ "license": "MIT", "private": true, "scripts": { - "build": "ATLASPACK_WORKERS=0 atlaspack src/index.js --no-cache", - "clean-demo": "rm -rf .atlaspack-cache dist && yarn demo" + "build": "atlaspack build src/index.js" }, "devDependencies": { - "@babel/core": "^7.22.11", - "@atlaspack/babel-register": "2.12.0", - "@atlaspack/core": "2.12.0" - }, - "browser": "dist/legacy/index.js", - "browserModern": "dist/modern/index.js", - "targets": { - "browser": { - "engines": { - "browsers": [ - "last 1 Chrome version" - ] - } - } - }, - "dependencies": { - "lodash": "^4.17.11", - "react": "^17.0.2", - "react-dom": "^17.0.2" + "@atlaspack/cli": "^2.12.0" } } diff --git a/packages/examples/three/.atlaspackrc b/packages/examples/three/.atlaspackrc deleted file mode 100644 index 8f619c55d..000000000 --- a/packages/examples/three/.atlaspackrc +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@atlaspack/config-default", - "optimizers": { - "*.js": ["@atlaspack/optimizer-esbuild"] - } -} diff --git a/packages/examples/three/.gitignore b/packages/examples/three/.gitignore deleted file mode 100644 index 2b71cf30b..000000000 --- a/packages/examples/three/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -src -github diff --git a/packages/examples/three/Makefile b/packages/examples/three/Makefile deleted file mode 100644 index 5a0301ecd..000000000 --- a/packages/examples/three/Makefile +++ /dev/null @@ -1,9 +0,0 @@ -github: - git clone --depth 1 --branch r108 https://github.com/mrdoob/three.js.git github - -src: | github - mkdir -p src - echo > src/entry.js - for i in 1 2 3 4; do test -d "src/copy$$i" || cp -r github/src "src/copy$$i"; done - for i in 1 2 3 4; do echo "import * as copy$$i from './copy$$i/Three.js';" >> src/entry.js; done - echo 'Line count:' && find src -name '*.js' | xargs wc -l | tail -n 1 diff --git a/packages/examples/three/package.json b/packages/examples/three/package.json deleted file mode 100644 index cb7c774bd..000000000 --- a/packages/examples/three/package.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "name": "@atlaspack/three-js-stresstest", - "version": "2.12.0", - "license": "MIT", - "private": true, - "scripts": { - "setup": "make src", - "build": "rm -rf dist && atlaspack build src/entry.js --no-cache", - "get-size": "du -sh dist" - }, - "browserLegacy": "dist/legacy/index.js", - "browserModern": "dist/modern/index.js", - "targets": { - "browserModern": { - "engines": { - "browsers": [ - "last 1 Chrome version" - ] - } - }, - "browserLegacy": { - "engines": { - "browsers": [ - "> 0.25%" - ] - } - } - }, - "devDependencies": { - "@atlaspack/cli": "2.12.0", - "@atlaspack/config-default": "2.12.0", - "@atlaspack/core": "2.12.0", - "@atlaspack/optimizer-esbuild": "2.12.0" - } -} diff --git a/packages/examples/ts-example/package.json b/packages/examples/ts-example/package.json deleted file mode 100644 index 342efc2c9..000000000 --- a/packages/examples/ts-example/package.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "name": "@atlaspack/ts-example", - "version": "2.12.0", - "license": "MIT", - "private": true, - "scripts": { - "demo": "atlaspack build src/index.ts --no-cache" - }, - "devDependencies": { - "@babel/core": "^7.22.11", - "@atlaspack/babel-register": "2.12.0", - "@atlaspack/core": "2.12.0" - }, - "main": "dist/main.js", - "module": "dist/module.js", - "types": "dist/types.d.ts", - "dependencies": { - "lodash": "^4.17.11", - "react": "^17.0.2", - "react-dom": "^17.0.2" - } -} diff --git a/packages/examples/ts-typecheck-example/package.json b/packages/examples/ts-typecheck-example/package.json deleted file mode 100644 index e3f7d6c92..000000000 --- a/packages/examples/ts-typecheck-example/package.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "@atlaspack/ts-typecheck-example", - "version": "2.12.0", - "license": "MIT", - "private": true, - "scripts": { - "demo": "atlaspack build src/index.ts --no-cache" - }, - "browserModern": "dist/modern/index.js", - "targets": { - "browserModern": { - "engines": { - "browsers": [ - "last 1 Chrome version" - ] - } - } - }, - "devDependencies": { - "@babel/core": "^7.22.11", - "@atlaspack/babel-register": "2.12.0", - "@atlaspack/core": "2.12.0", - "@atlaspack/validator-typescript": "2.12.0" - } -} diff --git a/packages/examples/ts-typecheck-example/.atlaspackrc b/packages/examples/typechecking/.atlaspackrc similarity index 100% rename from packages/examples/ts-typecheck-example/.atlaspackrc rename to packages/examples/typechecking/.atlaspackrc diff --git a/packages/examples/typechecking/package.json b/packages/examples/typechecking/package.json new file mode 100644 index 000000000..412391e96 --- /dev/null +++ b/packages/examples/typechecking/package.json @@ -0,0 +1,14 @@ +{ + "name": "@atlaspack/typechecking-example", + "version": "2.12.0", + "license": "MIT", + "private": true, + "scripts": { + "build": "atlaspack build src/index.ts" + }, + "devDependencies": { + "@atlaspack/cli": "^2.12.0", + "@atlaspack/config-default": "^2.12.0", + "@atlaspack/validator-typescript": "^2.12.0" + } +} diff --git a/packages/examples/ts-typecheck-example/src/index.ts b/packages/examples/typechecking/src/index.ts similarity index 100% rename from packages/examples/ts-typecheck-example/src/index.ts rename to packages/examples/typechecking/src/index.ts diff --git a/packages/examples/ts-example/tsconfig.json b/packages/examples/typechecking/tsconfig.json similarity index 100% rename from packages/examples/ts-example/tsconfig.json rename to packages/examples/typechecking/tsconfig.json diff --git a/packages/examples/typescript/package.json b/packages/examples/typescript/package.json new file mode 100644 index 000000000..7e376ed17 --- /dev/null +++ b/packages/examples/typescript/package.json @@ -0,0 +1,15 @@ +{ + "name": "@atlaspack/typescript-example", + "version": "2.12.0", + "license": "MIT", + "private": true, + "scripts": { + "build": "atlaspack build src/index.ts" + }, + "devDependencies": { + "@atlaspack/cli": "^2.12.0" + }, + "main": "dist/main.js", + "module": "dist/module.js", + "types": "dist/types.d.ts" +} diff --git a/packages/examples/ts-example/src/index.ts b/packages/examples/typescript/src/index.ts similarity index 56% rename from packages/examples/ts-example/src/index.ts rename to packages/examples/typescript/src/index.ts index e206f8d12..1ec1d39fd 100644 --- a/packages/examples/ts-example/src/index.ts +++ b/packages/examples/typescript/src/index.ts @@ -1,7 +1,7 @@ -import * as other from './other'; +import * as main from './main'; type Params = { - hello: other.Params; + hello: main.Params; }; // export class Test {} @@ -18,7 +18,5 @@ var x = 2; var p = x + 2, q = 3; export {p as hi}; -// export {Test as Hello} from './other'; -// export * from './other'; -export {default as a} from './other'; +export {default as a} from './main'; diff --git a/packages/examples/ts-example/src/other.ts b/packages/examples/typescript/src/main.ts similarity index 78% rename from packages/examples/ts-example/src/other.ts rename to packages/examples/typescript/src/main.ts index 17a3297c6..4f6baccb5 100644 --- a/packages/examples/ts-example/src/other.ts +++ b/packages/examples/typescript/src/main.ts @@ -8,4 +8,5 @@ export interface Params { export var a = 2, b = 5; -export default function() {} + +export default function () {} diff --git a/packages/examples/ts-typecheck-example/tsconfig.json b/packages/examples/typescript/tsconfig.json similarity index 100% rename from packages/examples/ts-typecheck-example/tsconfig.json rename to packages/examples/typescript/tsconfig.json diff --git a/packages/optimizers/esbuild/package.json b/packages/optimizers/esbuild/package.json deleted file mode 100644 index dd35e534a..000000000 --- a/packages/optimizers/esbuild/package.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "name": "@atlaspack/optimizer-esbuild", - "version": "2.12.0", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "repository": { - "type": "git", - "url": "https://github.com/atlassian-labs/atlaspack.git" - }, - "main": "lib/ESBuildOptimizer.js", - "source": "src/ESBuildOptimizer.js", - "engines": { - "node": ">= 10.0.0", - "atlaspack": "^2.12.0" - }, - "dependencies": { - "@atlaspack/diagnostic": "2.12.0", - "@atlaspack/plugin": "2.12.0", - "@parcel/source-map": "^2.1.1", - "@atlaspack/utils": "2.12.0", - "esbuild": "^0.13.0", - "nullthrows": "^1.1.1" - } -} diff --git a/packages/optimizers/esbuild/src/ESBuildOptimizer.js b/packages/optimizers/esbuild/src/ESBuildOptimizer.js deleted file mode 100644 index e62976228..000000000 --- a/packages/optimizers/esbuild/src/ESBuildOptimizer.js +++ /dev/null @@ -1,56 +0,0 @@ -// @flow - -import {transform} from 'esbuild'; -import {Optimizer} from '@atlaspack/plugin'; -import {blobToString, normalizePath} from '@atlaspack/utils'; -import SourceMap from '@parcel/source-map'; -import path from 'path'; -import invariant from 'assert'; - -export default (new Optimizer({ - async optimize({contents, map, bundle, options, getSourceMapReference}) { - if (!bundle.env.shouldOptimize) { - return {contents, map}; - } - - let relativeBundlePath = path.relative( - options.projectRoot, - path.join(bundle.target.distDir, bundle.name), - ); - let code = await blobToString(contents); - if (map) { - let vlqMappings = await map.stringify({ - file: normalizePath(relativeBundlePath + '.map'), - format: 'inline', - }); - // Flow things... - invariant(typeof vlqMappings === 'string'); - code += `\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,${vlqMappings}`; - } - - let {code: js, map: jsSourceMap} = await transform(code, { - sourcemap: 'external', - sourcefile: relativeBundlePath, - minify: true, - treeShaking: true, - format: 'esm', - }); - - let sourcemap = null; - if (jsSourceMap) { - sourcemap = new SourceMap(options.projectRoot); - let parsedMap = JSON.parse(jsSourceMap); - sourcemap.addVLQMap(parsedMap); - - let sourcemapReference = await getSourceMapReference(sourcemap); - if (sourcemapReference) { - js += `\n//# sourceMappingURL=${sourcemapReference}\n`; - } - } - - return { - contents: js, - map: sourcemap || map, - }; - }, -}): Optimizer); diff --git a/yarn.lock b/yarn.lock index 1d089a1f3..304ae32da 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1322,6 +1322,126 @@ style-mod "^4.0.0" w3c-keyname "^2.2.4" +"@esbuild/aix-ppc64@0.23.1": + version "0.23.1" + resolved "https://registry.yarnpkg.com/@esbuild/aix-ppc64/-/aix-ppc64-0.23.1.tgz#51299374de171dbd80bb7d838e1cfce9af36f353" + integrity sha512-6VhYk1diRqrhBAqpJEdjASR/+WVRtfjpqKuNw11cLiaWpAT/Uu+nokB+UJnevzy/P9C/ty6AOe0dwueMrGh/iQ== + +"@esbuild/android-arm64@0.23.1": + version "0.23.1" + resolved "https://registry.yarnpkg.com/@esbuild/android-arm64/-/android-arm64-0.23.1.tgz#58565291a1fe548638adb9c584237449e5e14018" + integrity sha512-xw50ipykXcLstLeWH7WRdQuysJqejuAGPd30vd1i5zSyKK3WE+ijzHmLKxdiCMtH1pHz78rOg0BKSYOSB/2Khw== + +"@esbuild/android-arm@0.23.1": + version "0.23.1" + resolved "https://registry.yarnpkg.com/@esbuild/android-arm/-/android-arm-0.23.1.tgz#5eb8c652d4c82a2421e3395b808e6d9c42c862ee" + integrity sha512-uz6/tEy2IFm9RYOyvKl88zdzZfwEfKZmnX9Cj1BHjeSGNuGLuMD1kR8y5bteYmwqKm1tj8m4cb/aKEorr6fHWQ== + +"@esbuild/android-x64@0.23.1": + version "0.23.1" + resolved "https://registry.yarnpkg.com/@esbuild/android-x64/-/android-x64-0.23.1.tgz#ae19d665d2f06f0f48a6ac9a224b3f672e65d517" + integrity sha512-nlN9B69St9BwUoB+jkyU090bru8L0NA3yFvAd7k8dNsVH8bi9a8cUAUSEcEEgTp2z3dbEDGJGfP6VUnkQnlReg== + +"@esbuild/darwin-arm64@0.23.1": + version "0.23.1" + resolved "https://registry.yarnpkg.com/@esbuild/darwin-arm64/-/darwin-arm64-0.23.1.tgz#05b17f91a87e557b468a9c75e9d85ab10c121b16" + integrity sha512-YsS2e3Wtgnw7Wq53XXBLcV6JhRsEq8hkfg91ESVadIrzr9wO6jJDMZnCQbHm1Guc5t/CdDiFSSfWP58FNuvT3Q== + +"@esbuild/darwin-x64@0.23.1": + version "0.23.1" + resolved "https://registry.yarnpkg.com/@esbuild/darwin-x64/-/darwin-x64-0.23.1.tgz#c58353b982f4e04f0d022284b8ba2733f5ff0931" + integrity sha512-aClqdgTDVPSEGgoCS8QDG37Gu8yc9lTHNAQlsztQ6ENetKEO//b8y31MMu2ZaPbn4kVsIABzVLXYLhCGekGDqw== + +"@esbuild/freebsd-arm64@0.23.1": + version "0.23.1" + resolved "https://registry.yarnpkg.com/@esbuild/freebsd-arm64/-/freebsd-arm64-0.23.1.tgz#f9220dc65f80f03635e1ef96cfad5da1f446f3bc" + integrity sha512-h1k6yS8/pN/NHlMl5+v4XPfikhJulk4G+tKGFIOwURBSFzE8bixw1ebjluLOjfwtLqY0kewfjLSrO6tN2MgIhA== + +"@esbuild/freebsd-x64@0.23.1": + version "0.23.1" + resolved "https://registry.yarnpkg.com/@esbuild/freebsd-x64/-/freebsd-x64-0.23.1.tgz#69bd8511fa013b59f0226d1609ac43f7ce489730" + integrity sha512-lK1eJeyk1ZX8UklqFd/3A60UuZ/6UVfGT2LuGo3Wp4/z7eRTRYY+0xOu2kpClP+vMTi9wKOfXi2vjUpO1Ro76g== + +"@esbuild/linux-arm64@0.23.1": + version "0.23.1" + resolved "https://registry.yarnpkg.com/@esbuild/linux-arm64/-/linux-arm64-0.23.1.tgz#8050af6d51ddb388c75653ef9871f5ccd8f12383" + integrity sha512-/93bf2yxencYDnItMYV/v116zff6UyTjo4EtEQjUBeGiVpMmffDNUyD9UN2zV+V3LRV3/on4xdZ26NKzn6754g== + +"@esbuild/linux-arm@0.23.1": + version "0.23.1" + resolved "https://registry.yarnpkg.com/@esbuild/linux-arm/-/linux-arm-0.23.1.tgz#ecaabd1c23b701070484990db9a82f382f99e771" + integrity sha512-CXXkzgn+dXAPs3WBwE+Kvnrf4WECwBdfjfeYHpMeVxWE0EceB6vhWGShs6wi0IYEqMSIzdOF1XjQ/Mkm5d7ZdQ== + +"@esbuild/linux-ia32@0.23.1": + version "0.23.1" + resolved "https://registry.yarnpkg.com/@esbuild/linux-ia32/-/linux-ia32-0.23.1.tgz#3ed2273214178109741c09bd0687098a0243b333" + integrity sha512-VTN4EuOHwXEkXzX5nTvVY4s7E/Krz7COC8xkftbbKRYAl96vPiUssGkeMELQMOnLOJ8k3BY1+ZY52tttZnHcXQ== + +"@esbuild/linux-loong64@0.23.1": + version "0.23.1" + resolved "https://registry.yarnpkg.com/@esbuild/linux-loong64/-/linux-loong64-0.23.1.tgz#a0fdf440b5485c81b0fbb316b08933d217f5d3ac" + integrity sha512-Vx09LzEoBa5zDnieH8LSMRToj7ir/Jeq0Gu6qJ/1GcBq9GkfoEAoXvLiW1U9J1qE/Y/Oyaq33w5p2ZWrNNHNEw== + +"@esbuild/linux-mips64el@0.23.1": + version "0.23.1" + resolved "https://registry.yarnpkg.com/@esbuild/linux-mips64el/-/linux-mips64el-0.23.1.tgz#e11a2806346db8375b18f5e104c5a9d4e81807f6" + integrity sha512-nrFzzMQ7W4WRLNUOU5dlWAqa6yVeI0P78WKGUo7lg2HShq/yx+UYkeNSE0SSfSure0SqgnsxPvmAUu/vu0E+3Q== + +"@esbuild/linux-ppc64@0.23.1": + version "0.23.1" + resolved "https://registry.yarnpkg.com/@esbuild/linux-ppc64/-/linux-ppc64-0.23.1.tgz#06a2744c5eaf562b1a90937855b4d6cf7c75ec96" + integrity sha512-dKN8fgVqd0vUIjxuJI6P/9SSSe/mB9rvA98CSH2sJnlZ/OCZWO1DJvxj8jvKTfYUdGfcq2dDxoKaC6bHuTlgcw== + +"@esbuild/linux-riscv64@0.23.1": + version "0.23.1" + resolved "https://registry.yarnpkg.com/@esbuild/linux-riscv64/-/linux-riscv64-0.23.1.tgz#65b46a2892fc0d1af4ba342af3fe0fa4a8fe08e7" + integrity sha512-5AV4Pzp80fhHL83JM6LoA6pTQVWgB1HovMBsLQ9OZWLDqVY8MVobBXNSmAJi//Csh6tcY7e7Lny2Hg1tElMjIA== + +"@esbuild/linux-s390x@0.23.1": + version "0.23.1" + resolved "https://registry.yarnpkg.com/@esbuild/linux-s390x/-/linux-s390x-0.23.1.tgz#e71ea18c70c3f604e241d16e4e5ab193a9785d6f" + integrity sha512-9ygs73tuFCe6f6m/Tb+9LtYxWR4c9yg7zjt2cYkjDbDpV/xVn+68cQxMXCjUpYwEkze2RcU/rMnfIXNRFmSoDw== + +"@esbuild/linux-x64@0.23.1": + version "0.23.1" + resolved "https://registry.yarnpkg.com/@esbuild/linux-x64/-/linux-x64-0.23.1.tgz#d47f97391e80690d4dfe811a2e7d6927ad9eed24" + integrity sha512-EV6+ovTsEXCPAp58g2dD68LxoP/wK5pRvgy0J/HxPGB009omFPv3Yet0HiaqvrIrgPTBuC6wCH1LTOY91EO5hQ== + +"@esbuild/netbsd-x64@0.23.1": + version "0.23.1" + resolved "https://registry.yarnpkg.com/@esbuild/netbsd-x64/-/netbsd-x64-0.23.1.tgz#44e743c9778d57a8ace4b72f3c6b839a3b74a653" + integrity sha512-aevEkCNu7KlPRpYLjwmdcuNz6bDFiE7Z8XC4CPqExjTvrHugh28QzUXVOZtiYghciKUacNktqxdpymplil1beA== + +"@esbuild/openbsd-arm64@0.23.1": + version "0.23.1" + resolved "https://registry.yarnpkg.com/@esbuild/openbsd-arm64/-/openbsd-arm64-0.23.1.tgz#05c5a1faf67b9881834758c69f3e51b7dee015d7" + integrity sha512-3x37szhLexNA4bXhLrCC/LImN/YtWis6WXr1VESlfVtVeoFJBRINPJ3f0a/6LV8zpikqoUg4hyXw0sFBt5Cr+Q== + +"@esbuild/openbsd-x64@0.23.1": + version "0.23.1" + resolved "https://registry.yarnpkg.com/@esbuild/openbsd-x64/-/openbsd-x64-0.23.1.tgz#2e58ae511bacf67d19f9f2dcd9e8c5a93f00c273" + integrity sha512-aY2gMmKmPhxfU+0EdnN+XNtGbjfQgwZj43k8G3fyrDM/UdZww6xrWxmDkuz2eCZchqVeABjV5BpildOrUbBTqA== + +"@esbuild/sunos-x64@0.23.1": + version "0.23.1" + resolved "https://registry.yarnpkg.com/@esbuild/sunos-x64/-/sunos-x64-0.23.1.tgz#adb022b959d18d3389ac70769cef5a03d3abd403" + integrity sha512-RBRT2gqEl0IKQABT4XTj78tpk9v7ehp+mazn2HbUeZl1YMdaGAQqhapjGTCe7uw7y0frDi4gS0uHzhvpFuI1sA== + +"@esbuild/win32-arm64@0.23.1": + version "0.23.1" + resolved "https://registry.yarnpkg.com/@esbuild/win32-arm64/-/win32-arm64-0.23.1.tgz#84906f50c212b72ec360f48461d43202f4c8b9a2" + integrity sha512-4O+gPR5rEBe2FpKOVyiJ7wNDPA8nGzDuJ6gN4okSA1gEOYZ67N8JPk58tkWtdtPeLz7lBnY6I5L3jdsr3S+A6A== + +"@esbuild/win32-ia32@0.23.1": + version "0.23.1" + resolved "https://registry.yarnpkg.com/@esbuild/win32-ia32/-/win32-ia32-0.23.1.tgz#5e3eacc515820ff729e90d0cb463183128e82fac" + integrity sha512-BcaL0Vn6QwCwre3Y717nVHZbAa4UBEigzFm6VdsVdT/MbZ38xoj1X9HPkZhbmaBGUD1W8vxAfffbDe8bA6AKnQ== + +"@esbuild/win32-x64@0.23.1": + version "0.23.1" + resolved "https://registry.yarnpkg.com/@esbuild/win32-x64/-/win32-x64-0.23.1.tgz#81fd50d11e2c32b2d6241470e3185b70c7b30699" + integrity sha512-BHpFFeslkWrXWyUPnbKm+xYYVYruCinGcftSBaa8zoF9hZO4BcSCFUvHVTtzpIY6YzUnYtuEhZ+C9iEXjxnasg== + "@eslint-community/eslint-utils@^4.2.0": version "4.4.0" resolved "https://registry.yarnpkg.com/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz#a23514e8fb9af1269d5f7788aa556798d61c6b59" @@ -5751,71 +5871,6 @@ es6-weak-map@^2.0.1: es6-iterator "^2.0.3" es6-symbol "^3.1.1" -esbuild-android-arm64@0.13.12: - version "0.13.12" - resolved "https://registry.yarnpkg.com/esbuild-android-arm64/-/esbuild-android-arm64-0.13.12.tgz#e1f199dc05405cdc6670c00fb6c793822bf8ae4c" - integrity sha512-TSVZVrb4EIXz6KaYjXfTzPyyRpXV5zgYIADXtQsIenjZ78myvDGaPi11o4ZSaHIwFHsuwkB6ne5SZRBwAQ7maw== - -esbuild-darwin-64@0.13.12: - version "0.13.12" - resolved "https://registry.yarnpkg.com/esbuild-darwin-64/-/esbuild-darwin-64-0.13.12.tgz#f5c59e622955c01f050e5a7ac9c1d41db714b94d" - integrity sha512-c51C+N+UHySoV2lgfWSwwmlnLnL0JWj/LzuZt9Ltk9ub1s2Y8cr6SQV5W3mqVH1egUceew6KZ8GyI4nwu+fhsw== - -esbuild-darwin-arm64@0.13.12: - version "0.13.12" - resolved "https://registry.yarnpkg.com/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.13.12.tgz#8abae74c2956a8aa568fc52c78829338c4a4b988" - integrity sha512-JvAMtshP45Hd8A8wOzjkY1xAnTKTYuP/QUaKp5eUQGX+76GIie3fCdUUr2ZEKdvpSImNqxiZSIMziEiGB5oUmQ== - -esbuild-freebsd-64@0.13.12: - version "0.13.12" - resolved "https://registry.yarnpkg.com/esbuild-freebsd-64/-/esbuild-freebsd-64-0.13.12.tgz#6ad2ab8c0364ee7dd2d6e324d876a8e60ae75d12" - integrity sha512-r6On/Skv9f0ZjTu6PW5o7pdXr8aOgtFOEURJZYf1XAJs0IQ+gW+o1DzXjVkIoT+n1cm3N/t1KRJfX71MPg/ZUA== - -esbuild-freebsd-arm64@0.13.12: - version "0.13.12" - resolved "https://registry.yarnpkg.com/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.13.12.tgz#6f38155f4c300ac4c8adde1fde3cc6a4440a8294" - integrity sha512-F6LmI2Q1gii073kmBE3NOTt/6zLL5zvZsxNLF8PMAwdHc+iBhD1vzfI8uQZMJA1IgXa3ocr3L3DJH9fLGXy6Yw== - -esbuild-linux-32@0.13.12: - version "0.13.12" - resolved "https://registry.yarnpkg.com/esbuild-linux-32/-/esbuild-linux-32-0.13.12.tgz#b1d15e330188a8c21de75c3f0058628a3eefade7" - integrity sha512-U1UZwG3UIwF7/V4tCVAo/nkBV9ag5KJiJTt+gaCmLVWH3bPLX7y+fNlhIWZy8raTMnXhMKfaTvWZ9TtmXzvkuQ== - -esbuild-linux-64@0.13.12: - version "0.13.12" - resolved "https://registry.yarnpkg.com/esbuild-linux-64/-/esbuild-linux-64-0.13.12.tgz#25bd64b66162b02348e32d8f12e4c9ee61f1d070" - integrity sha512-YpXSwtu2NxN3N4ifJxEdsgd6Q5d8LYqskrAwjmoCT6yQnEHJSF5uWcxv783HWN7lnGpJi9KUtDvYsnMdyGw71Q== - -esbuild-linux-arm64@0.13.12: - version "0.13.12" - resolved "https://registry.yarnpkg.com/esbuild-linux-arm64/-/esbuild-linux-arm64-0.13.12.tgz#ba582298457cc5c9ac823a275de117620c06537f" - integrity sha512-sgDNb8kb3BVodtAlcFGgwk+43KFCYjnFOaOfJibXnnIojNWuJHpL6aQJ4mumzNWw8Rt1xEtDQyuGK9f+Y24jGA== - -esbuild-linux-arm@0.13.12: - version "0.13.12" - resolved "https://registry.yarnpkg.com/esbuild-linux-arm/-/esbuild-linux-arm-0.13.12.tgz#6bc81c957bff22725688cc6359c29a25765be09b" - integrity sha512-SyiT/JKxU6J+DY2qUiSLZJqCAftIt3uoGejZ0HDnUM2MGJqEGSGh7p1ecVL2gna3PxS4P+j6WAehCwgkBPXNIw== - -esbuild-linux-mips64le@0.13.12: - version "0.13.12" - resolved "https://registry.yarnpkg.com/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.13.12.tgz#ef3c4aba3e585d847cbade5945a8b4a5c62c7ce2" - integrity sha512-qQJHlZBG+QwVIA8AbTEtbvF084QgDi4DaUsUnA+EolY1bxrG+UyOuGflM2ZritGhfS/k7THFjJbjH2wIeoKA2g== - -esbuild-linux-ppc64le@0.13.12: - version "0.13.12" - resolved "https://registry.yarnpkg.com/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.13.12.tgz#a21fb64e80c38bef06122e48283990fc6db578e1" - integrity sha512-2dSnm1ldL7Lppwlo04CGQUpwNn5hGqXI38OzaoPOkRsBRWFBozyGxTFSee/zHFS+Pdh3b28JJbRK3owrrRgWNw== - -esbuild-netbsd-64@0.13.12: - version "0.13.12" - resolved "https://registry.yarnpkg.com/esbuild-netbsd-64/-/esbuild-netbsd-64-0.13.12.tgz#1ea7fc8cfce88a20a4047b867ef184049a6641ae" - integrity sha512-D4raxr02dcRiQNbxOLzpqBzcJNFAdsDNxjUbKkDMZBkL54Z0vZh4LRndycdZAMcIdizC/l/Yp/ZsBdAFxc5nbA== - -esbuild-openbsd-64@0.13.12: - version "0.13.12" - resolved "https://registry.yarnpkg.com/esbuild-openbsd-64/-/esbuild-openbsd-64-0.13.12.tgz#adde32f2f1b05dc4bd4fc544d6ea5a4379f9ca4d" - integrity sha512-KuLCmYMb2kh05QuPJ+va60bKIH5wHL8ypDkmpy47lzwmdxNsuySeCMHuTv5o2Af1RUn5KLO5ZxaZeq4GEY7DaQ== - esbuild-register@^3.5.0: version "3.5.0" resolved "https://registry.yarnpkg.com/esbuild-register/-/esbuild-register-3.5.0.tgz#449613fb29ab94325c722f560f800dd946dc8ea8" @@ -5823,48 +5878,35 @@ esbuild-register@^3.5.0: dependencies: debug "^4.3.4" -esbuild-sunos-64@0.13.12: - version "0.13.12" - resolved "https://registry.yarnpkg.com/esbuild-sunos-64/-/esbuild-sunos-64-0.13.12.tgz#a7ecaf52b7364fbee76dc8aa707fa3e1cff3342c" - integrity sha512-jBsF+e0woK3miKI8ufGWKG3o3rY9DpHvCVRn5eburMIIE+2c+y3IZ1srsthKyKI6kkXLvV4Cf/E7w56kLipMXw== - -esbuild-windows-32@0.13.12: - version "0.13.12" - resolved "https://registry.yarnpkg.com/esbuild-windows-32/-/esbuild-windows-32-0.13.12.tgz#a8756033dc905c4b7bea19be69f7ee68809f8770" - integrity sha512-L9m4lLFQrFeR7F+eLZXG82SbXZfUhyfu6CexZEil6vm+lc7GDCE0Q8DiNutkpzjv1+RAbIGVva9muItQ7HVTkQ== - -esbuild-windows-64@0.13.12: - version "0.13.12" - resolved "https://registry.yarnpkg.com/esbuild-windows-64/-/esbuild-windows-64-0.13.12.tgz#ae694aa66ca078acb8509b2da31197ed1f40f798" - integrity sha512-k4tX4uJlSbSkfs78W5d9+I9gpd+7N95W7H2bgOMFPsYREVJs31+Q2gLLHlsnlY95zBoPQMIzHooUIsixQIBjaQ== - -esbuild-windows-arm64@0.13.12: - version "0.13.12" - resolved "https://registry.yarnpkg.com/esbuild-windows-arm64/-/esbuild-windows-arm64-0.13.12.tgz#782c5a8bd6d717ea55aaafe648f9926ca36a4a88" - integrity sha512-2tTv/BpYRIvuwHpp2M960nG7uvL+d78LFW/ikPItO+2GfK51CswIKSetSpDii+cjz8e9iSPgs+BU4o8nWICBwQ== - -esbuild@^0.13.0: - version "0.13.12" - resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.13.12.tgz#9cac641594bf03cf34145258c093d743ebbde7ca" - integrity sha512-vTKKUt+yoz61U/BbrnmlG9XIjwpdIxmHB8DlPR0AAW6OdS+nBQBci6LUHU2q9WbBobMEIQxxDpKbkmOGYvxsow== +esbuild@^0.23.1: + version "0.23.1" + resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.23.1.tgz#40fdc3f9265ec0beae6f59824ade1bd3d3d2dab8" + integrity sha512-VVNz/9Sa0bs5SELtn3f7qhJCDPCF5oMEl5cO9/SSinpE9hbPVvxbd572HH5AKiP7WD8INO53GgfDDhRjkylHEg== optionalDependencies: - esbuild-android-arm64 "0.13.12" - esbuild-darwin-64 "0.13.12" - esbuild-darwin-arm64 "0.13.12" - esbuild-freebsd-64 "0.13.12" - esbuild-freebsd-arm64 "0.13.12" - esbuild-linux-32 "0.13.12" - esbuild-linux-64 "0.13.12" - esbuild-linux-arm "0.13.12" - esbuild-linux-arm64 "0.13.12" - esbuild-linux-mips64le "0.13.12" - esbuild-linux-ppc64le "0.13.12" - esbuild-netbsd-64 "0.13.12" - esbuild-openbsd-64 "0.13.12" - esbuild-sunos-64 "0.13.12" - esbuild-windows-32 "0.13.12" - esbuild-windows-64 "0.13.12" - esbuild-windows-arm64 "0.13.12" + "@esbuild/aix-ppc64" "0.23.1" + "@esbuild/android-arm" "0.23.1" + "@esbuild/android-arm64" "0.23.1" + "@esbuild/android-x64" "0.23.1" + "@esbuild/darwin-arm64" "0.23.1" + "@esbuild/darwin-x64" "0.23.1" + "@esbuild/freebsd-arm64" "0.23.1" + "@esbuild/freebsd-x64" "0.23.1" + "@esbuild/linux-arm" "0.23.1" + "@esbuild/linux-arm64" "0.23.1" + "@esbuild/linux-ia32" "0.23.1" + "@esbuild/linux-loong64" "0.23.1" + "@esbuild/linux-mips64el" "0.23.1" + "@esbuild/linux-ppc64" "0.23.1" + "@esbuild/linux-riscv64" "0.23.1" + "@esbuild/linux-s390x" "0.23.1" + "@esbuild/linux-x64" "0.23.1" + "@esbuild/netbsd-x64" "0.23.1" + "@esbuild/openbsd-arm64" "0.23.1" + "@esbuild/openbsd-x64" "0.23.1" + "@esbuild/sunos-x64" "0.23.1" + "@esbuild/win32-arm64" "0.23.1" + "@esbuild/win32-ia32" "0.23.1" + "@esbuild/win32-x64" "0.23.1" escalade@^3.1.1: version "3.1.1"