Skip to content

Commit

Permalink
feat: export @lingui/core/dev subpackage
Browse files Browse the repository at this point in the history
  • Loading branch information
tricoder42 authored and Photonios committed Dec 9, 2019
1 parent 612d462 commit 26ff3b7
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/dev.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./src/dev"
5 changes: 5 additions & 0 deletions packages/core/npm/dev.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
if (process.env.NODE_ENV === "production") {
module.exports = require("./cjs/dev.production.min.js")
} else {
module.exports = require("./cjs/dev.development.js")
}
7 changes: 7 additions & 0 deletions scripts/build/bundles.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ const bundles = [
externals: []
},

{
type: bundleTypes.UNIVERSAL,
entry: "@lingui/core",
label: "dev",
externals: []
},

{
type: bundleTypes.UNIVERSAL,
entry: "@lingui/react",
Expand Down
16 changes: 16 additions & 0 deletions scripts/build/results.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,22 @@
"@lingui/react.production.min.js (NODE_PROD)": {
"size": 7541,
"gzip": 2605
},
"dev.development.js (NODE_DEV)": {
"size": 14825,
"gzip": 3861
},
"dev.production.min.js (NODE_PROD)": {
"size": 4286,
"gzip": 1381
},
"@lingui/core/dev.development.js (NODE_DEV)": {
"size": 14825,
"gzip": 3861
},
"@lingui/core/dev.production.min.js (NODE_PROD)": {
"size": 4286,
"gzip": 1381
}
}
}

0 comments on commit 26ff3b7

Please sign in to comment.