Skip to content

Commit 83c19b2

Browse files
authored
Merge pull request #3 from zeit/fix/next-dev
Fixes next dev and adds the css requires
2 parents 88b01e0 + 1833eff commit 83c19b2

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

bin/next-dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import { resolve } from 'path'
44
import parseArgs from 'minimist'
55
import Server from '../server'
6-
import build from '../server/build'
6+
import build from '../server/build/index'
77

88
const argv = parseArgs(process.argv.slice(2), {
99
alias: {

client/eval-script.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@ import React from 'react'
22
import ReactDOM from 'react-dom'
33
import App from '../lib/app'
44
import Link from '../lib/link'
5+
import Css from '../lib/css'
56

67
const modules = new Map([
78
['react', React],
89
['react-dom', ReactDOM],
910
['next/app', App],
10-
['next/link', Link]
11+
['next/link', Link],
12+
['next/css', Css]
1113
])
1214

1315
/**

server/build/bundle.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ export default function bundle (src, dst) {
1414
'react-dom',
1515
{
1616
[require.resolve('react')]: 'react',
17-
[require.resolve('../lib/link')]: 'next/link'
17+
[require.resolve('../../lib/link')]: 'next/link',
18+
[require.resolve('../../lib/css')]: 'next/css'
1819
}
1920
],
2021
resolveLoader: {

server/build/transpile.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ const babelOptions = {
2525
[
2626
{ src: `npm:${babelRuntimePath}`, expose: 'babel-runtime' },
2727
{ src: `npm:${require.resolve('react')}`, expose: 'react' },
28-
{ src: `npm:${require.resolve('../lib/link')}`, expose: 'next/link' }
28+
{ src: `npm:${require.resolve('../../lib/link')}`, expose: 'next/link' },
29+
{ src: `npm:${require.resolve('../../lib/css')}`, expose: 'next/css' }
2930
]
3031
]
3132
],

0 commit comments

Comments
 (0)