Skip to content

Commit

Permalink
fix(bundle): move to default import
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown committed Oct 26, 2020
1 parent c8bd0b9 commit 2660f56
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/watch-dev.js
Expand Up @@ -5,8 +5,8 @@
* It reruns whenever user changes something.
*/

const runtime = require('@babel/plugin-transform-runtime')
const styled = require('babel-plugin-styled-components')
const { default: runtime } = require('@babel/plugin-transform-runtime')
const { default: styled } = require('babel-plugin-styled-components')
const bundler = require('../src/backend/bundler/bundler')
const env = require('../src/backend/bundler/bundler-env')

Expand All @@ -21,7 +21,7 @@ async function build() {
watch: !once,
babelConfig: {
plugins: [runtime, styled],
babelHelpers: "runtime",
babelHelpers: 'runtime',
include: [
`${__dirname}/../src/frontend/**`,
`${__dirname}/../src/locale/*`,
Expand Down

0 comments on commit 2660f56

Please sign in to comment.