@atlaspack/transformer-react-refresh-wrap 2.14.23 → 2.15.1

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,27 @@
1
1
  # @atlaspack/transformer-react-refresh-wrap
2
2
 
3
+ ## 2.15.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`f6b3f22`](https://github.com/atlassian-labs/atlaspack/commit/f6b3f2276c7e417580b49c4879563aab51f156b1)]:
8
+ - @atlaspack/feature-flags@2.23.0
9
+ - @atlaspack/utils@2.18.2
10
+ - @atlaspack/plugin@2.14.25
11
+
12
+ ## 2.15.0
13
+
14
+ ### Minor Changes
15
+
16
+ - [#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
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies [[`73dd7ba`](https://github.com/atlassian-labs/atlaspack/commit/73dd7baab69456ef2f6e4a0cc7dbb04f407eb148)]:
21
+ - @atlaspack/feature-flags@2.22.0
22
+ - @atlaspack/utils@2.18.1
23
+ - @atlaspack/plugin@2.14.24
24
+
3
25
  ## 2.14.23
4
26
 
5
27
  ### Patch Changes
@@ -28,7 +28,7 @@ function _featureFlags() {
28
28
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
29
29
  // @ts-expect-error TS2304
30
30
  function shouldExclude(asset, options) {
31
- return !asset.isSource || !options.hmrOptions || !asset.env.isBrowser() || asset.env.isLibrary || asset.env.isWorker() || asset.env.isWorklet() || options.mode !== 'development' || !asset.getDependencies().find(
31
+ return !asset.isSource || !options.hmrOptions || !asset.env.isBrowser() || asset.env.isLibrary || asset.env.isWorker() || asset.env.isTesseract() || asset.env.isWorklet() || options.mode !== 'development' || !asset.getDependencies().find(
32
32
  // @ts-expect-error TS7006
33
33
  v => v.specifier === 'react' || v.specifier === 'react/jsx-runtime' || v.specifier === 'react/jsx-dev-runtime' || v.specifier === '@emotion/react' || v.specifier === '@emotion/react/jsx-runtime' || v.specifier === '@emotion/react/jsx-dev-runtime');
34
34
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/transformer-react-refresh-wrap",
3
- "version": "2.14.23",
3
+ "version": "2.15.1",
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/ReactRefreshWrapTransformer.js",
13
13
  "source": "./src/ReactRefreshWrapTransformer.ts",
14
- "types": "./lib/ReactRefreshWrapTransformer.d.ts",
14
+ "types": "./lib/types/ReactRefreshWrapTransformer.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.23.0",
20
+ "@atlaspack/plugin": "2.14.25",
21
+ "@atlaspack/utils": "2.18.2",
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
+ }
@@ -10,6 +10,7 @@ function shouldExclude(asset: MutableAsset, options: PluginOptions) {
10
10
  !asset.env.isBrowser() ||
11
11
  asset.env.isLibrary ||
12
12
  asset.env.isWorker() ||
13
+ asset.env.isTesseract() ||
13
14
  asset.env.isWorklet() ||
14
15
  options.mode !== 'development' ||
15
16
  !asset.getDependencies().find(