diff --git a/examples/with-absolute-imports/package.json b/examples/with-absolute-imports/package.json index 6d37fcb1d4230..280f74e064127 100644 --- a/examples/with-absolute-imports/package.json +++ b/examples/with-absolute-imports/package.json @@ -5,9 +5,11 @@ "start": "next start" }, "dependencies": { - "babel-plugin-module-resolver": "^2.7.1", "next": "latest", "react": "^16.1.1", "react-dom": "^16.1.1" + }, + "devDependencies": { + "babel-plugin-module-resolver": "^3.1.1" } } diff --git a/examples/with-universal-configuration/.babelrc b/examples/with-universal-configuration/.babelrc deleted file mode 100644 index e1580ad7a468a..0000000000000 --- a/examples/with-universal-configuration/.babelrc +++ /dev/null @@ -1,8 +0,0 @@ -{ - "presets": [ - "next/babel" - ], - "plugins": [ - ["transform-define", "./env-config.js"] - ] -} diff --git a/examples/with-universal-configuration/.babelrc.js b/examples/with-universal-configuration/.babelrc.js new file mode 100644 index 0000000000000..5d41651bbc636 --- /dev/null +++ b/examples/with-universal-configuration/.babelrc.js @@ -0,0 +1,6 @@ +const env = require('./env-config.js') + +module.exports = { + presets: ['next/babel'], + plugins: [['transform-define', env]] +} diff --git a/examples/with-universal-configuration/package.json b/examples/with-universal-configuration/package.json index 317d9dce1b1aa..585b9e518b567 100644 --- a/examples/with-universal-configuration/package.json +++ b/examples/with-universal-configuration/package.json @@ -12,7 +12,7 @@ "react-dom": "^16.0.0" }, "devDependencies": { - "babel-plugin-transform-define": "^1.2.0" + "babel-plugin-transform-define": "^1.3.0" }, "license": "ISC" } diff --git a/lib/app.js b/lib/app.js index fc1de5f25036d..886743e1f3c5c 100644 --- a/lib/app.js +++ b/lib/app.js @@ -79,9 +79,7 @@ export class Container extends Component { } const warnUrl = execOnce(() => { - if (process.env.NODE_ENV !== 'production') { - warn(`Warning: the 'url' property is deprecated. https://err.sh/next.js/url-deprecated`) - } + warn(`Warning: the 'url' property is deprecated. https://err.sh/next.js/url-deprecated`) }) export function createUrl (router) {