-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🏗 Remove
freeze
optiion from babel-plugin-transform-json-import (#3…
- Loading branch information
1 parent
485615b
commit 64e6e43
Showing
11 changed files
with
7 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
...plugin-transform-json-import/test/fixtures/transform-assertions/transform-freeze/input.js
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
...in-transform-json-import/test/fixtures/transform-assertions/transform-freeze/options.json
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
...ugin-transform-json-import/test/fixtures/transform-assertions/transform-freeze/output.mjs
This file was deleted.
Oops, something went wrong.
10 changes: 2 additions & 8 deletions
10
...nsform-json-import/test/fixtures/transform-assertions/transform-minify-locales/output.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,4 @@ | ||
// options.js is left as is | ||
// lang.json is minified because the path includes /_locales/ | ||
const options = JSON.parse("{\"plugins\":[\"../../../..\"],\"sourceType\":\"module\"}", function (key, val) { | ||
if (typeof val === 'object') Object.freeze(val); | ||
return val; | ||
}); | ||
const lang = JSON.parse("{\"2\":\"foo\",\"15\":\"bar\"}", function (key, val) { | ||
if (typeof val === 'object') Object.freeze(val); | ||
return val; | ||
}); | ||
const options = JSON.parse("{\"plugins\":[\"../../../..\"],\"sourceType\":\"module\"}"); | ||
const lang = JSON.parse("{\"2\":\"foo\",\"15\":\"bar\"}"); |
3 changes: 0 additions & 3 deletions
3
...gin-transform-json-import/test/fixtures/transform-assertions/transform-no-freeze/input.js
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
...transform-json-import/test/fixtures/transform-assertions/transform-no-freeze/options.json
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
...n-transform-json-import/test/fixtures/transform-assertions/transform-no-freeze/output.mjs
This file was deleted.
Oops, something went wrong.
10 changes: 2 additions & 8 deletions
10
...abel-plugin-transform-json-import/test/fixtures/transform-assertions/transform/output.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,2 @@ | ||
const key = JSON.parse("{\"plugins\":[\"../../../..\"],\"sourceType\":\"module\"}", function (key, val) { | ||
if (typeof val === 'object') Object.freeze(val); | ||
return val; | ||
}); | ||
const string = JSON.parse("{\"plugins\":[\"../../../..\"],\"sourceType\":\"module\"}", function (key, val) { | ||
if (typeof val === 'object') Object.freeze(val); | ||
return val; | ||
}); | ||
const key = JSON.parse("{\"plugins\":[\"../../../..\"],\"sourceType\":\"module\"}"); | ||
const string = JSON.parse("{\"plugins\":[\"../../../..\"],\"sourceType\":\"module\"}"); |