@isograph/babel-plugin 0.0.0-main-e5ca30ca → 0.0.0-main-d09a3258

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.
Files changed (2) hide show
  1. package/compileTag.js +5 -0
  2. package/package.json +1 -1
package/compileTag.js CHANGED
@@ -1,6 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const pathModule = require('path');
4
+ const os = require('os');
4
5
 
5
6
  function compileTag(t, path, config) {
6
7
  const callee = path.node.callee;
@@ -70,6 +71,10 @@ function compileImportStatement(t, path, type, field, artifactType, config) {
70
71
  artifactDirToArtifact,
71
72
  );
72
73
 
74
+ if (os.platform() === 'win32') {
75
+ fileToArtifact = fileToArtifact.replace(/\\/g, '/');
76
+ }
77
+
73
78
  // If we do not have to traverse upward, e.g. if the resolver is in
74
79
  // src/HomePage, and the artifact directory is src/, then fileToArtifact
75
80
  // will start with a /. require('/...') is not good, as that is treated
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@isograph/babel-plugin",
3
3
  "description": "A Babel plugin for use with Isograph applications.",
4
4
  "homepage": "https://isograph.dev",
5
- "version": "0.0.0-main-e5ca30ca",
5
+ "version": "0.0.0-main-d09a3258",
6
6
  "keywords": [
7
7
  "graphql",
8
8
  "isograph",