diff --git a/README.md b/README.md index f0b9e66..6b30b70 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ # babel-plugin -babel插件 + +babel插件,将项目 `url` 中的环境变量替换 diff --git a/index.js b/index.js index 3629be0..bc7820c 100644 --- a/index.js +++ b/index.js @@ -1 +1 @@ -const a = `https://edu-activity.wps.cn/activity?fe_env=e` \ No newline at end of file +const a = `https://edu-activity.cn/activity?fe_env=e` \ No newline at end of file diff --git a/test/__fixtures__/first-test/code.js b/test/__fixtures__/first-test/code.js index 565ed93..a2d6dd8 100644 --- a/test/__fixtures__/first-test/code.js +++ b/test/__fixtures__/first-test/code.js @@ -1 +1 @@ -const a = `https://edu-activity.wps.cn/activity?fe_env=e`; \ No newline at end of file +const a = `https://edu-activity.cn/activity?fe_env=e`; \ No newline at end of file diff --git a/test/__fixtures__/first-test/output.js b/test/__fixtures__/first-test/output.js index bef4b06..cfb5f85 100644 --- a/test/__fixtures__/first-test/output.js +++ b/test/__fixtures__/first-test/output.js @@ -1 +1 @@ -const a = `https://edu-activity.wps.cn/activity`; \ No newline at end of file +const a = `https://edu-activity.cn/activity`; \ No newline at end of file