Parcel: Less Inline Javascript is not enabled

Created on 16 Apr 2018  路  2Comments  路  Source: parcel-bundler/parcel

Choose one: is this a 馃悰 bug

馃帥 Configuration (.babelrc, package.json, cli command)

{
  "presets": ["env", "react"],
  "plugins": [
    "transform-class-properties",
    "transform-decorators-legacy",
    ["import", { "libraryName": "antd", "style": true }]
  ]
}

馃 Expected Behavior

We should be able to import Antd less file :
import 'antd/dist/antd.less'

馃槸 Current Behavior

Build failed with error :
/node_modules/antd/dist/antd.less: Inline JavaScript is not enabled. Is it set in your options?

I didn't find a way to provide this options using Parcel 馃様

馃實 Your Environment

| Software | Version(s) |
| ---------------- | ---------- |
| Parcel | 1.7.0
| Node | 9.4.0
| npm/Yarn | 5.7.1
| Operating System | OSX

Question

Most helpful comment

All 2 comments

This is a duplicate of #907, plz move discussion there

Was this page helpful?
0 / 5 - 0 ratings