@atlaspack/runtime-react-refresh 2.14.23 → 2.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @atlaspack/runtime-react-refresh
2
2
 
3
+ ## 2.15.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#732](https://github.com/atlassian-labs/atlaspack/pull/732) [`7f5841c`](https://github.com/atlassian-labs/atlaspack/commit/7f5841c39df049f9546cccbeea2a7337e0337b45) Thanks [@vykimnguyen](https://github.com/vykimnguyen)! - add tesseract context
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [[`73dd7ba`](https://github.com/atlassian-labs/atlaspack/commit/73dd7baab69456ef2f6e4a0cc7dbb04f407eb148)]:
12
+ - @atlaspack/feature-flags@2.22.0
13
+ - @atlaspack/utils@2.18.1
14
+ - @atlaspack/plugin@2.14.24
15
+
3
16
  ## 2.14.23
4
17
 
5
18
  ### Patch Changes
@@ -63,7 +63,7 @@ var _default = exports.default = new (_plugin().Runtime)({
63
63
  // @atlaspack/runtime-react-refresh package and remove all references to it
64
64
  return;
65
65
  }
66
- if (bundle.type !== 'js' || !options.hmrOptions || !bundle.env.isBrowser() || bundle.env.isLibrary || bundle.env.isWorker() || bundle.env.isWorklet() || options.mode !== 'development' || bundle.env.sourceType !== 'module') {
66
+ if (bundle.type !== 'js' || !options.hmrOptions || !bundle.env.isBrowser() || bundle.env.isLibrary || bundle.env.isWorker() || bundle.env.isTesseract() || bundle.env.isWorklet() || options.mode !== 'development' || bundle.env.sourceType !== 'module') {
67
67
  return;
68
68
  }
69
69
  let entries = bundle.getEntryAssets();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/runtime-react-refresh",
3
- "version": "2.14.23",
3
+ "version": "2.15.0",
4
4
  "license": "(MIT OR Apache-2.0)",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -11,19 +11,20 @@
11
11
  },
12
12
  "main": "./lib/ReactRefreshRuntime.js",
13
13
  "source": "./src/ReactRefreshRuntime.ts",
14
- "types": "./lib/ReactRefreshRuntime.d.ts",
14
+ "types": "./lib/types/ReactRefreshRuntime.d.ts",
15
15
  "engines": {
16
16
  "node": ">= 16.0.0"
17
17
  },
18
18
  "dependencies": {
19
- "@atlaspack/feature-flags": "2.21.0",
20
- "@atlaspack/plugin": "2.14.23",
21
- "@atlaspack/utils": "2.18.0",
19
+ "@atlaspack/feature-flags": "2.22.0",
20
+ "@atlaspack/plugin": "2.14.24",
21
+ "@atlaspack/utils": "2.18.1",
22
22
  "react-error-overlay": "6.0.9",
23
23
  "react-refresh": ">=0.9 <=0.16"
24
24
  },
25
25
  "type": "commonjs",
26
26
  "scripts": {
27
- "check-ts": "tsc --emitDeclarationOnly --rootDir src"
27
+ "check-ts": "tsc --emitDeclarationOnly --rootDir src",
28
+ "build:lib": "gulp build --gulpfile ../../../gulpfile.js --cwd ."
28
29
  }
29
- }
30
+ }
@@ -45,6 +45,7 @@ export default new Runtime({
45
45
  !bundle.env.isBrowser() ||
46
46
  bundle.env.isLibrary ||
47
47
  bundle.env.isWorker() ||
48
+ bundle.env.isTesseract() ||
48
49
  bundle.env.isWorklet() ||
49
50
  options.mode !== 'development' ||
50
51
  bundle.env.sourceType !== 'module'