@startupjs/bundler 0.61.7 → 0.62.0-alpha.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.
@@ -12,11 +12,21 @@ module.exports.transform = async function startupjsMetroBabelTransform ({
12
12
  const { platform } = options
13
13
 
14
14
  // from exotic extensions to js
15
- if (/\.styl$/.test(filename)) {
16
- src = callLoader(stylusToCssLoader, src, filename, { platform })
17
- src = callLoader(cssToReactNativeLoader, src, filename)
18
- } else if (/\.css$/.test(filename)) {
19
- src = callLoader(cssToReactNativeLoader, src, filename)
15
+ if (/\.styl$/.test(filename) && !/\.module\.styl/.test(filename)) {
16
+ try {
17
+ src = callLoader(stylusToCssLoader, src, filename, { platform })
18
+ src = callLoader(cssToReactNativeLoader, src, filename)
19
+ } catch (err) {
20
+ console.error(`Error processing ${filename} with stylusToCssLoader:`, err)
21
+ throw err
22
+ }
23
+ } else if (/\.css$/.test(filename) && !/\.module\.css$/.test(filename)) {
24
+ try {
25
+ src = callLoader(cssToReactNativeLoader, src, filename)
26
+ } catch (err) {
27
+ console.error(`Error processing ${filename} with cssToReactNativeLoader:`, err)
28
+ throw err
29
+ }
20
30
  } else if (/\.svg$/.test(filename)) {
21
31
  src = await callLoader(asyncSvgLoader, src, filename)
22
32
  } else if (/\.mdx?$/.test(filename)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@startupjs/bundler",
3
- "version": "0.61.7",
3
+ "version": "0.62.0-alpha.0",
4
4
  "description": "Opinionated scripts and configs to develop a react-native-web project",
5
5
  "main": "index.js",
6
6
  "publishConfig": {
@@ -18,13 +18,13 @@
18
18
  "@babel/core": "^7.9.0",
19
19
  "@babel/plugin-syntax-jsx": "^7.0.0",
20
20
  "@mdx-js/mdx": "^3.0.0",
21
- "@startupjs/babel-plugin-eliminator": "^0.61.0",
22
- "@startupjs/babel-plugin-startupjs-plugins": "^0.61.0",
23
- "@startupjs/server": "^0.61.0",
21
+ "@startupjs/babel-plugin-eliminator": "^0.62.0-alpha.0",
22
+ "@startupjs/babel-plugin-startupjs-plugins": "^0.62.0-alpha.0",
23
+ "@startupjs/server": "^0.62.0-alpha.0",
24
24
  "@svgr/core": "^8.1.0",
25
25
  "@svgr/plugin-jsx": "^8.1.0",
26
26
  "@svgr/plugin-svgo": "^8.1.0",
27
- "babel-preset-startupjs": "^0.61.3",
27
+ "babel-preset-startupjs": "^0.62.0-alpha.0",
28
28
  "connect": "^3.7.0",
29
29
  "lodash": "^4.17.20",
30
30
  "remark-gfm": "4.0.1"
@@ -33,5 +33,5 @@
33
33
  "cssxjs": "*",
34
34
  "react-native-svg": "*"
35
35
  },
36
- "gitHead": "4689165ee46d507872f9a9bdeacb4315818adcdf"
36
+ "gitHead": "bb6cf80cd815fcc068d470dbf38a507c3bfa466a"
37
37
  }