未验证 提交 1802fd96 编写于 作者: P Peter Pan 提交者: GitHub

fix: compatibility of safari (#802)

* chore: add telemetry in demo

* fix: compatibility of safari
上级 23391a43
...@@ -11,6 +11,7 @@ RUN ["pip", "install", "--disable-pip-version-check", "--find-links=dist", "visu ...@@ -11,6 +11,7 @@ RUN ["pip", "install", "--disable-pip-version-check", "--find-links=dist", "visu
WORKDIR /home/visualdl/frontend WORKDIR /home/visualdl/frontend
ENV SCOPE server ENV SCOPE server
ENV PUBLIC_PATH /paddle/visualdl/demo ENV PUBLIC_PATH /paddle/visualdl/demo
ENV TELEMETRY_ID b281676ad3824647971c6fd92d65f642
RUN ["./scripts/install.sh"] RUN ["./scripts/install.sh"]
RUN ["./scripts/build.sh"] RUN ["./scripts/build.sh"]
......
module.exports = { module.exports = {
extends: '@snowpack/app-scripts-react/babel.config.json', extends: '@snowpack/app-scripts-react/babel.config.json',
plugins: ['styled-components'] presets: [
[
'@babel/preset-env',
{
targets: {
esmodules: true
},
bugfixes: true,
modules: false
}
]
],
plugins: ['styled-components', '@babel/plugin-proposal-class-properties']
}; };
...@@ -67,6 +67,8 @@ ...@@ -67,6 +67,8 @@
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "7.11.6", "@babel/core": "7.11.6",
"@babel/plugin-proposal-class-properties": "7.10.4",
"@babel/preset-env": "7.11.5",
"@babel/preset-react": "7.10.4", "@babel/preset-react": "7.10.4",
"@snowpack/app-scripts-react": "1.10.0", "@snowpack/app-scripts-react": "1.10.0",
"@snowpack/plugin-dotenv": "2.0.1", "@snowpack/plugin-dotenv": "2.0.1",
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册