You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 17, 2019. It is now read-only.
Add import {version} from '../package.json' to get version from package.json and use it, but whole package.json is included in js bundle. Same code without fusion only version is imported and tree shaking works well.
Current behavior
Whole json file is included in js bundle.
Expected behavior
Only imported property should be imported.
Steps to reproduce
Add import {version} from '../package.json' to your code and use it.
yarn build-production the whole json file is included in js bundle.
Your environment
fusion-cli version: 1.9.1
Node.js version (node --version): 8.11.3
npm version (npm --version): 5.6.0
Operating System: Mac
The text was updated successfully, but these errors were encountered:
Type of issue
bug
Description
Add
import {version} from '../package.json'
to get version from package.json and use it, but whole package.json is included in js bundle. Same code without fusion onlyversion
is imported and tree shaking works well.Current behavior
Whole json file is included in js bundle.
Expected behavior
Only imported property should be imported.
Steps to reproduce
import {version} from '../package.json'
to your code and use it.yarn build-production
the whole json file is included in js bundle.Your environment
fusion-cli version: 1.9.1
Node.js version (
node --version
): 8.11.3npm version (
npm --version
): 5.6.0Operating System: Mac
The text was updated successfully, but these errors were encountered: