@startupjs/bundler 0.60.0-canary.0 → 0.60.0-canary.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.
@@ -29,6 +29,7 @@ module.exports = function eliminatorLoader (source) {
29
29
 
30
30
  let code = source
31
31
 
32
+ // Remove code related to other envs
32
33
  code = babel.transformSync(code, {
33
34
  filename,
34
35
  babelrc: false,
@@ -44,18 +45,7 @@ module.exports = function eliminatorLoader (source) {
44
45
  // auto-load startupjs plugins
45
46
  // traverse "exports" of package.json and all dependencies to find all startupjs plugins
46
47
  // and automatically import them in the main startupjs.config.js file
47
- [require('@startupjs/babel-plugin-startupjs-plugins'), { useRequireContext }]
48
- ]
49
- }).code
50
-
51
- // Remove code related to other envs
52
- code = babel.transformSync(code, {
53
- filename,
54
- babelrc: false,
55
- configFile: false,
56
- plugins: [
57
- // support JSX syntax
58
- require('@babel/plugin-syntax-jsx'),
48
+ [require('@startupjs/babel-plugin-startupjs-plugins'), { useRequireContext }],
59
49
 
60
50
  // run eliminator to remove code targeting other envs.
61
51
  // For example, only keep code related to 'client' and 'isomorphic' envs
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@startupjs/bundler",
3
- "version": "0.60.0-canary.0",
3
+ "version": "0.60.0-canary.1",
4
4
  "description": "Opinionated scripts and configs to develop a react-native-web project",
5
5
  "main": "index.js",
6
6
  "publishConfig": {
@@ -19,7 +19,7 @@
19
19
  "@babel/plugin-syntax-jsx": "^7.0.0",
20
20
  "@mdx-js/mdx": "^2.3.0",
21
21
  "@startupjs/babel-plugin-eliminator": "^0.60.0-canary.0",
22
- "@startupjs/babel-plugin-startupjs-plugins": "^0.60.0-canary.0",
22
+ "@startupjs/babel-plugin-startupjs-plugins": "^0.60.0-canary.1",
23
23
  "@startupjs/server": "^0.60.0-canary.0",
24
24
  "@svgr/core": "^8.1.0",
25
25
  "@svgr/plugin-jsx": "^8.1.0",
@@ -33,5 +33,5 @@
33
33
  "cssxjs": "*",
34
34
  "react-native-svg": "*"
35
35
  },
36
- "gitHead": "4c5baa750402d0beb02921a38413620b348bd374"
36
+ "gitHead": "302e7e8004b435ddf4310611d3b59247e4e3b89e"
37
37
  }