Skip to content

Commit 776f21c

Browse files
authored
Merge pull request #797 from atom-minimap/update
Chore update
2 parents eee2e8b + 920fca8 commit 776f21c

21 files changed

+1335
-1588
lines changed

.prettierignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
node_modules
2-
package.json
32
package-lock.json
43
pnpm-lock.yaml
54
changelog.md

.terserrc.js

Lines changed: 1 addition & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1 @@
1-
const isDev = process.env.NODE_ENV === "development"
2-
const isTest = process.env.NODE_ENV === "test"
3-
const isReadable = process.env.READABLE_BUILD || isDev || isTest
4-
5-
const TerserOptions = {
6-
// "module": false, // controlled by Parcel
7-
compress: isDev
8-
? false
9-
: {
10-
global_defs: {
11-
// remove spec specific code for production
12-
"@atom.inSpecMode": !isTest ? "() => false" : "() => true",
13-
},
14-
ecma: "2018", // Change based on the target
15-
toplevel: false,
16-
hoist_vars: false,
17-
hoist_funs: true,
18-
pure_getters: true,
19-
unsafe: true,
20-
unsafe_arrows: true,
21-
unsafe_comps: true,
22-
unsafe_Function: true,
23-
unsafe_math: true,
24-
unsafe_symbols: true,
25-
unsafe_methods: true,
26-
unsafe_proto: true,
27-
unsafe_regexp: true,
28-
unsafe_undefined: true,
29-
passes: 2,
30-
},
31-
parse: {
32-
ecma: 2020,
33-
},
34-
mangle: isReadable ? false : true,
35-
format: {
36-
beautify: isReadable,
37-
},
38-
}
39-
export default TerserOptions
1+
module.exports = require("terser-config-atomic")

lib/adapters/legacy-adapter.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
"use strict"
22

3-
/**
4-
* @access private
5-
*/
3+
/** @access private */
64
export default class LegacyAdapter {
75
constructor(textEditor) {
86
this.textEditor = textEditor

lib/adapters/stable-adapter.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
"use strict"
22

3-
/**
4-
* @access private
5-
*/
3+
/** @access private */
64
export default class StableAdapter {
75
constructor(textEditor) {
86
this.textEditor = textEditor

lib/canvas-layer.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
/** @babel */
22
"use strict"
33

4-
/**
5-
* @access private
6-
*/
4+
/** @access private */
75
export default class CanvasLayer {
86
constructor() {
97
/**
108
* The onscreen canvas.
9+
*
1110
* @type {HTMLCanvasElement}
1211
*/
1312
this.canvas = document.createElement("canvas")
@@ -16,6 +15,7 @@ export default class CanvasLayer {
1615

1716
/**
1817
* The onscreen canvas context.
18+
*
1919
* @type {CanvasRenderingContext2D}
2020
*/
2121
this.context = this.canvas.getContext("2d", { desynchronized })
@@ -24,12 +24,14 @@ export default class CanvasLayer {
2424

2525
/**
2626
* The offscreen canvas.
27+
*
2728
* @type {HTMLCanvasElement}
2829
* @access private
2930
*/
3031
this.offscreenCanvas = document.createElement("canvas")
3132
/**
3233
* The offscreen canvas context.
34+
*
3335
* @type {CanvasRenderingContext2D}
3436
* @access private
3537
*/

0 commit comments

Comments
 (0)