0.0.2 • Published 5 years ago
module-attributes v0.0.2
Module Attributes
See https://github.com/tc39/proposal-module-attributes.
It, for now, requires a Babel parser fork (available at https://github.com/vivek12345/babel/tree/proposal-module-attributes).
json
import data from "./data" with type: "json";
webpack loader
Add the following rule to your webpack configuration:
// ...
{
test: /\.jsx?$/,
loader: "module-attributes"
}
// ...