Comments (6)
I don't see any ES6 stuff in the lib directory. Can you provide your webpack configuration?
from polymorph.
I'm using Roots Sage, you can see the webpack configuration here: https://github.com/roots/sage/tree/9.0.0-beta.4/resources/assets/build
from polymorph.
I installed a test project using the vue-cli (which uses webpack internally) and did not encounter an issue running and doing a production build with polymorph-js. I can safely rule out that polymorph is built incorrectly.
What version of polymorph are you currently using? The current version is 0.2.2. Better yet, please provide your package.json. Perhaps this is an issue with a particular version of webpack?
from polymorph.
I'm using 0.2.2. Here is my package.json
{
"name": "sage",
"version": "9.0.0",
"author": "Roots [email protected]",
"homepage": "https://roots.io/sage/",
"private": true,
"repository": {
"type": "git",
"url": "git://github.com/roots/sage.git"
},
"bugs": {
"url": "https://github.com/roots/sage/issues"
},
"licenses": [
{
"type": "MIT",
"url": "http://opensource.org/licenses/MIT"
}
],
"browserslist": [
"last 2 versions",
"android 4",
"opera 12"
],
"stylelint": {
"extends": "stylelint-config-standard",
"rules": {
"no-empty-source": null,
"at-rule-no-unknown": [
true,
{
"ignoreAtRules": [
"extend",
"at-root",
"debug",
"warn",
"error",
"if",
"else",
"for",
"each",
"while",
"mixin",
"include",
"content",
"return",
"function"
]
}
]
}
},
"scripts": {
"build": "webpack --progress --config resources/assets/build/webpack.config.js",
"build:production": "webpack --progress -p --config resources/assets/build/webpack.config.js",
"build:profile": "webpack --progress --profile --json --config resources/assets/build/webpack.config.js",
"start": "webpack --hide-modules --watch --config resources/assets/build/webpack.config.js",
"rmdist": "rimraf dist",
"lint": "npm run -s lint:scripts && npm run -s lint:styles",
"lint:scripts": "eslint resources/assets/scripts resources/assets/build",
"lint:styles": "stylelint "resources/assets/styles/**/*.{css,sass,scss,sss,less}"",
"test": "npm run -s lint"
},
"engines": {
"node": ">= 6.9.4"
},
"devDependencies": {
"autoprefixer": "~7.2.5",
"browser-sync": "~2.23.6",
"browsersync-webpack-plugin": "^0.6.0",
"bs-html-injector": "~3.0",
"buble-loader": "^0.4.1",
"cache-loader": "~1.2.0",
"clean-webpack-plugin": "^0.1.18",
"copy-globs-webpack-plugin": "^0.2.0",
"css-loader": "^0.28.9",
"cssnano": "~v4.0.0-rc.2",
"eslint": "~4.17.0",
"eslint-loader": "~1.9",
"eslint-plugin-import": "~2.8.0",
"extract-text-webpack-plugin": "~3.0.2",
"file-loader": "^1.1.6",
"friendly-errors-webpack-plugin": "^1.6.1",
"imagemin-mozjpeg": "~7.0.0",
"imagemin-webpack-plugin": "~2.0.0",
"import-glob": "~1.5",
"node-sass": "~4.7.2",
"postcss-loader": "~2.1.0",
"postcss-safe-parser": "~3.0",
"resolve-url-loader": "~2.2.1",
"rimraf": "~2.6",
"sass-loader": "~6.0",
"style-loader": "^0.20.1",
"stylelint": "^8.4.0",
"stylelint-config-standard": "~18.0.0",
"stylelint-webpack-plugin": "^0.10.1",
"url-loader": "^0.6.2",
"webpack": "~3.10.0",
"webpack-assets-manifest": "^1.0.0",
"webpack-dev-middleware": "~2.0.4",
"webpack-hot-middleware": "~2.21.0",
"webpack-merge": "~4.1.1",
"yargs": "~11.0.0"
},
"dependencies": {
"bootstrap": "^4.0.0-beta",
"jquery": "^3.3.1",
"polymorph-js": "^0.2.2",
"popmotion": "^8.3.6",
"popper.js": "~1.11"
}
}
from polymorph.
I think this might be an issue with that particular version of webpack + the uglify plugin: webpack-contrib/uglifyjs-webpack-plugin#78 (comment)
The resolution I see in those is to upgrade webpack or the plugin.
Alternatively, the npm package ships with a dist folder. You can configure webpack to alias node_modules/polymorph-js/dist/polymorph.js
and that should work around the webpack issue.
from polymorph.
Closing due to inactivity. If you are still having issues, please reopen this with further details.
from polymorph.
Related Issues (13)
- name is now output.name
- chore() update deps and bump version HOT 1
- GPL 3 vs. MIT HOT 4
- Greenkeeper spam branches
- npm polymorph demo broken HOT 1
- dead site link HOT 1
- security vulnerabilities 63 low, 2 moderate, 7 high HOT 5
- Webpack grabbing es2015 version instead – fails to run on older browser HOT 4
- Unsupported element PATH HOT 6
- This library can work with Expo HOT 2
- The path is getting NaN sometimes HOT 1
- works not good with some shapes HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from polymorph.