@ray-js/babel-preset-standard 0.3.31 → 0.4.2

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.
@@ -1,8 +1,8 @@
1
- const pluginTester = require('babel-plugin-tester').default;
2
- const path = require('path');
3
- const pkg = require('../package.json');
1
+ const pluginTester = require('babel-plugin-tester').default
2
+ const path = require('path')
3
+ const pkg = require('../package.json')
4
4
  pluginTester({
5
5
  pluginName: pkg.name,
6
6
  plugin: [],
7
7
  fixtures: path.join(__dirname, '../__fixtures__'),
8
- });
8
+ })
package/index.d.ts CHANGED
@@ -1,17 +1,17 @@
1
- import type { Target } from '@ray-js/types';
1
+ import type { Target } from '@ray-js/types'
2
2
 
3
- export type Modules = 'amd' | 'umd' | 'systemjs' | 'commonjs' | 'cjs' | 'auto' | false;
3
+ export type Modules = 'amd' | 'umd' | 'systemjs' | 'commonjs' | 'cjs' | 'auto' | false
4
4
 
5
5
  declare type PresetOption = {
6
- modules: Modules;
7
- jsx: 'react' | 'preserve';
8
- platform: Target;
9
- macro: boolean;
10
- useBuiltIns?: false;
11
- };
6
+ modules: Modules
7
+ jsx: 'react' | 'preserve'
8
+ platform: Target
9
+ macro: boolean
10
+ useBuiltIns?: false
11
+ }
12
12
  declare const _default: (
13
13
  api: object,
14
14
  options: PresetOption,
15
15
  dirname: string
16
- ) => import('@babel/core').PluginObj<import('@babel/core').PluginPass>;
17
- export default _default;
16
+ ) => import('@babel/core').PluginObj<import('@babel/core').PluginPass>
17
+ export default _default
package/index.js CHANGED
@@ -1,9 +1,9 @@
1
- const { declare } = require('@babel/helper-plugin-utils');
1
+ const { declare } = require('@babel/helper-plugin-utils')
2
2
 
3
3
  function preset(api, presetOption) {
4
- api.assertVersion(7);
4
+ api.assertVersion(7)
5
5
 
6
- const { modules = 'auto', jsx = 'react', macro = true, useBuiltIns } = presetOption || {};
6
+ const { modules = 'auto', jsx = 'react', macro = true, useBuiltIns } = presetOption || {}
7
7
 
8
8
  return {
9
9
  presets: [
@@ -29,7 +29,7 @@ function preset(api, presetOption) {
29
29
  require.resolve('@babel/plugin-proposal-object-rest-spread'),
30
30
  require.resolve('@babel/plugin-proposal-optional-chaining'),
31
31
  ].filter(Boolean),
32
- };
32
+ }
33
33
  }
34
34
 
35
- module.exports = declare(preset);
35
+ module.exports = declare(preset)
package/jest.config.js CHANGED
@@ -2,4 +2,4 @@
2
2
  module.exports = {
3
3
  preset: 'ts-jest',
4
4
  testEnvironment: 'node',
5
- };
5
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/babel-preset-standard",
3
- "version": "0.3.31",
3
+ "version": "0.4.2",
4
4
  "description": "Ray babel-preset-standard",
5
5
  "keywords": [
6
6
  "ray"
@@ -22,13 +22,13 @@
22
22
  "@babel/plugin-proposal-optional-chaining": "^7.14.5",
23
23
  "@babel/plugin-syntax-jsx": "^7.14.5",
24
24
  "@babel/preset-react": "^7.14.5",
25
- "@ray-js/babel-preset-base": "^0.3.31",
25
+ "@ray-js/babel-preset-base": "^0.4.2",
26
26
  "babel-plugin-macros": "^3.1.0",
27
27
  "babel-plugin-minify-dead-code-elimination-while-loop-fixed": "^0.3.0",
28
28
  "babel-plugin-transform-prune-unused-imports": "^1.0.1"
29
29
  },
30
30
  "devDependencies": {
31
- "@ray-js/types": "^0.3.31",
31
+ "@ray-js/types": "^0.4.2",
32
32
  "babel-plugin-tester": "^10.1.0",
33
33
  "jest": "^27.2.0",
34
34
  "ts-jest": "^27.0.5"
@@ -39,6 +39,6 @@
39
39
  "email": "tuyafe@tuya.com"
40
40
  }
41
41
  ],
42
- "gitHead": "0e8f60742f2e5a397e15c41b56c4465234b2ca15",
42
+ "gitHead": "6b834e4415b185ac80daf96e44003db277fcc50b",
43
43
  "repository": {}
44
44
  }