1
1
mirror of https://github.com/primer/css.git synced 2024-09-11 16:36:07 +03:00

Use gatsby-plugin-asias-imports to resolve React

This commit is contained in:
Michelle Tilley 2020-04-08 12:20:48 -07:00
parent b352134aa1
commit 6aa5af0866
No known key found for this signature in database
GPG Key ID: 810E3A96D4CF00F4
5 changed files with 7048 additions and 3156 deletions

View File

@ -1,3 +1,5 @@
const path = require('path')
module.exports = {
siteMetadata: {
title: 'Primer CSS',
@ -26,6 +28,15 @@ module.exports = {
trackingId: 'UA-126681523-2',
anonymize: true
}
},
{
resolve: `gatsby-plugin-alias-imports`,
options: {
alias: {
'styled-components': path.resolve(__dirname, 'node_modules', 'styled-components'),
'react': path.resolve(__dirname, 'node_modules', 'react'),
}
}
}
]
}

View File

@ -9222,6 +9222,14 @@
}
}
},
"gatsby-plugin-alias-imports": {
"version": "1.0.5",
"resolved": "https://registry.npmjs.org/gatsby-plugin-alias-imports/-/gatsby-plugin-alias-imports-1.0.5.tgz",
"integrity": "sha512-q58JrSjuVNh4NApamqElR0zqwm55FOb9vFAVb2i2ftPRu0uYzWJkbOz2IN3vSw7a+5PmGzX7VL8XDFXlNHrMNA==",
"requires": {
"@babel/runtime": "^7.2.0"
}
},
"gatsby-plugin-catch-links": {
"version": "2.2.1",
"resolved": "https://registry.npmjs.org/gatsby-plugin-catch-links/-/gatsby-plugin-catch-links-2.2.1.tgz",

View File

@ -18,6 +18,7 @@
"autoprefixer": "^9.6.1",
"chroma-js": "^2.0.6",
"gatsby": "^2.10.4",
"gatsby-plugin-alias-imports": "^1.0.5",
"gatsby-plugin-google-analytics": "^2.1.7",
"gatsby-plugin-sass": "^2.1.0",
"gatsby-plugin-svgr": "^2.0.2",

10180
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -44,8 +44,8 @@
},
"devDependencies": {
"@octokit/rest": "^16.34.0",
"@storybook/addon-viewport": "5.0.11",
"@storybook/react": "5.0.11",
"@storybook/addon-viewport": "5.3.18",
"@storybook/react": "5.3.18",
"autoprefixer": "9.4.7",
"code-blocks": "^1.1.0",
"colorette": "^1.1.0",