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..07201dfac
--- /dev/null
+++ b/packages/examples/typescript/package.json
@@ -0,0 +1,15 @@
+{
+ "name": "@atlaspack/ts-example",
+ "version": "2.12.0",
+ "license": "MIT",
+ "private": true,
+ "scripts": {
+ "build": "atlaspack build src/index.ts --no-cache"
+ },
+ "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 43ff88444..e8d02ef2a 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -5777,71 +5777,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"
@@ -5849,49 +5784,6 @@ 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==
- 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"
-
escalade@^3.1.1:
version "3.1.1"
resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40"