mirror of
https://github.com/nodejs/node.git
synced 2026-12-06 09:38:45 -05:00
PR-URL: https://github.com/nodejs/node/pull/39924 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Bradley Farias <bradley.meck@gmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Zijian Liu <lxxyxzj@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.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"]);
|
|
},
|
|
};
|
|
});
|