Add node modules and new code for release (#57)
Co-authored-by: taakleton <taakleton@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
da63a48ad7
commit
a517f2ff65
18
node_modules/@babel/helper-module-imports/lib/is-module.js
generated
vendored
Normal file
18
node_modules/@babel/helper-module-imports/lib/is-module.js
generated
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = isModule;
|
||||
|
||||
function isModule(path) {
|
||||
const {
|
||||
sourceType
|
||||
} = path.node;
|
||||
|
||||
if (sourceType !== "module" && sourceType !== "script") {
|
||||
throw path.buildCodeFrameError(`Unknown sourceType "${sourceType}", cannot transform.`);
|
||||
}
|
||||
|
||||
return path.node.sourceType === "module";
|
||||
}
|
Reference in New Issue
Block a user