Use peerDep rather than plugin param for common APIs.
This commit is contained in:
@@ -6,8 +6,7 @@
|
||||
"license": "MIT",
|
||||
"main": "lib/index.js",
|
||||
"dependencies": {
|
||||
"@babel/helper-module-transforms": "7.0.0-beta.31",
|
||||
"@babel/template": "7.0.0-beta.31"
|
||||
"@babel/helper-module-transforms": "7.0.0-beta.31"
|
||||
},
|
||||
"keywords": [
|
||||
"babel-plugin"
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import template from "@babel/template";
|
||||
import {
|
||||
isModule,
|
||||
rewriteModuleStatementsAndPrepareHeader,
|
||||
@@ -8,13 +7,14 @@ import {
|
||||
ensureStatementsHoisted,
|
||||
wrapInterop,
|
||||
} from "@babel/helper-module-transforms";
|
||||
import { template, types as t } from "@babel/core";
|
||||
|
||||
const buildWrapper = template(`
|
||||
define(MODULE_NAME, AMD_ARGUMENTS, function(IMPORT_NAMES) {
|
||||
})
|
||||
`);
|
||||
|
||||
export default function({ types: t }, options) {
|
||||
export default function(api, options) {
|
||||
const { loose, allowTopLevelThis, strict, strictMode, noInterop } = options;
|
||||
return {
|
||||
visitor: {
|
||||
|
||||
Reference in New Issue
Block a user