@parcel/transformer-stylus 2.0.0-nightly.1285 → 2.0.0-nightly.1289

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.
@@ -113,18 +113,12 @@ var _default = new (_plugin().Transformer)({
113
113
  async loadConfig({
114
114
  config
115
115
  }) {
116
- let configFile = await config.getConfig(['.stylusrc', '.stylusrc.js', '.stylusrc.cjs'], {
116
+ let configFile = await config.getConfig(['.stylusrc', '.stylusrc.js', '.stylusrc.cjs', '.stylusrc.mjs'], {
117
117
  packageKey: 'stylus'
118
118
  });
119
119
 
120
120
  if (configFile) {
121
- let isJavascript = _path().default.extname(configFile.filePath).endsWith('js');
122
-
123
- if (isJavascript) {
124
- config.invalidateOnStartup();
125
- } // Resolve relative paths from config file
126
-
127
-
121
+ // Resolve relative paths from config file
128
122
  if (configFile.contents.paths) {
129
123
  configFile.contents.paths = configFile.contents.paths.map(p => _path().default.resolve(_path().default.dirname(configFile.filePath), p));
130
124
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parcel/transformer-stylus",
3
- "version": "2.0.0-nightly.1285+0356c65e9",
3
+ "version": "2.0.0-nightly.1289+99f466357",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -17,12 +17,12 @@
17
17
  "source": "src/StylusTransformer.js",
18
18
  "engines": {
19
19
  "node": ">= 12.0.0",
20
- "parcel": "2.0.0-nightly.1283+0356c65e9"
20
+ "parcel": "2.0.0-nightly.1287+99f466357"
21
21
  },
22
22
  "dependencies": {
23
- "@parcel/plugin": "2.0.0-nightly.1285+0356c65e9",
24
- "@parcel/utils": "2.0.0-nightly.1285+0356c65e9",
23
+ "@parcel/plugin": "2.0.0-nightly.1289+99f466357",
24
+ "@parcel/utils": "2.0.0-nightly.1289+99f466357",
25
25
  "stylus": "^0.55.0"
26
26
  },
27
- "gitHead": "0356c65e98c819f38a2935131fc6f114f865ef6e"
27
+ "gitHead": "99f46635710785eb1e79e4f3c6bfe8c7b2062993"
28
28
  }
@@ -16,18 +16,13 @@ const URL_RE = /^(?:url\s*\(\s*)?['"]?(?:[#/]|(?:https?:)?\/\/)/i;
16
16
  export default (new Transformer({
17
17
  async loadConfig({config}) {
18
18
  let configFile = await config.getConfig(
19
- ['.stylusrc', '.stylusrc.js', '.stylusrc.cjs'],
19
+ ['.stylusrc', '.stylusrc.js', '.stylusrc.cjs', '.stylusrc.mjs'],
20
20
  {
21
21
  packageKey: 'stylus',
22
22
  },
23
23
  );
24
24
 
25
25
  if (configFile) {
26
- let isJavascript = path.extname(configFile.filePath).endsWith('js');
27
- if (isJavascript) {
28
- config.invalidateOnStartup();
29
- }
30
-
31
26
  // Resolve relative paths from config file
32
27
  if (configFile.contents.paths) {
33
28
  configFile.contents.paths = configFile.contents.paths.map(p =>