You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -396,7 +396,7 @@ that need to wrap the application to properly work with server-rendering. 🚧
396
396
- It takes as argument an options object for further customization
397
397
398
398
```js
399
-
importDocumentfrom'smooth-core/document'
399
+
importDocumentfrom'smooth/document'
400
400
401
401
Document.getInitialProps=ctx=> {
402
402
constsheet=newServerStyleSheet()
@@ -518,33 +518,33 @@ module.exports = {
518
518
519
519
In order to extend our usage of `babel`, you can simply define a `.babelrc` file at the root of your app. This file is optional.
520
520
521
-
If found, we're going to consider it the _source of truth_, therefore it needs to define what smooth needs as well, which is the `smooth-core/babel` preset.
521
+
If found, we're going to consider it the _source of truth_, therefore it needs to define what smooth needs as well, which is the `smooth/babel` preset.
522
522
523
523
This is designed so that you are not surprised by modifications we could make to the babel configurations.
524
524
525
525
Here's an example `.babelrc` file:
526
526
527
527
```json
528
528
{
529
-
"presets": ["smooth-core/babel"],
529
+
"presets": ["smooth/babel"],
530
530
"plugins": []
531
531
}
532
532
```
533
533
534
-
The `smooth-core/babel` preset includes everything needed to transpile React applications. This includes:
534
+
The `smooth/babel` preset includes everything needed to transpile React applications. This includes:
535
535
536
536
- preset-env
537
537
- preset-react
538
538
- plugin-proposal-class-properties
539
539
-@loadable/babel-plugin
540
540
541
-
These presets / plugins **should not** be added to your custom `.babelrc`. Instead, you can configure them on the `smooth-core/babel` preset:
541
+
These presets / plugins **should not** be added to your custom `.babelrc`. Instead, you can configure them on the `smooth/babel` preset:
542
542
543
543
```json
544
544
{
545
545
"presets": [
546
546
[
547
-
"smooth-core/babel",
547
+
"smooth/babel",
548
548
{
549
549
"preset-env": {},
550
550
"transform-runtime": {}
@@ -572,7 +572,7 @@ For example, to deploy with [`now`](https://zeit.co/now) a `package.json` like f
0 commit comments