import side-effects are removed #1189
Labels
bug report 🦗
Issue is probably a bug, but it needs to be checked
bundler: webpack 📦
Issue is related to webpack bundler
needs: complete repro 🖥️
Issue need to have complete repro provided
Environment
@linaria/[email protected]
,@linaria/[email protected]
Description
I am trying to get our setup with Storybook & Webpack loader running, the problem that I faced is basically:
The minimal repro is to include
import { storiesOf } from "@storybook/react"
.I debugged and have seen that an import for
regeneratorRuntime
is missing (import "regenerator-runtime/runtime"). I made a simpler fixture to check if it's a problem with imports.Relevant parts of the log:
Evaluated code does not contain an import for
side-effect.js
and it breaks 💥Reproducible Demo
yarn
node test.js
ortest-simple.js
The text was updated successfully, but these errors were encountered: