Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com> Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
14 lines
273 B
JavaScript
14 lines
273 B
JavaScript
import { declare } from "@babel/helper-plugin-utils";
|
|
|
|
export default declare(api => {
|
|
api.assertVersion(7);
|
|
|
|
return {
|
|
name: "syntax-import-assertions",
|
|
|
|
manipulateOptions(opts, parserOpts) {
|
|
parserOpts.plugins.push(["importAssertions"]);
|
|
},
|
|
};
|
|
});
|